File tree 3 files changed +18
-2
lines changed
lib/generators/rspec/swagger/templates
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Contributing
2
+
3
+ ## Running tests
4
+
5
+ The ` make_site.sh ` script will create a test site for a specific version of
6
+ Rails and run the tests:
7
+ ```
8
+ RAILS_VERSION=4.2.0
9
+ ./make_site.sh
10
+ ```
11
+
12
+ Once the test site is created you can just re-run the tests:
13
+ ```
14
+ bundle exec rspec
15
+ ```
Original file line number Diff line number Diff line change @@ -61,4 +61,5 @@ bundle exec rake swagger
61
61
```
62
62
63
63
Now you can use Swagger UI or the renderer of your choice to display the
64
- formatted documentation.
64
+ formatted documentation. [ swagger_engine] ( https://github.com/batdevis/swagger_engine )
65
+ works pretty well and supports multiple documents.
Original file line number Diff line number Diff line change 1
1
require 'swagger_helper'
2
2
3
- RSpec . describe '<%= file_name %>' , type : :request do
3
+ RSpec . describe '<%= controller_path %>' , type : :request do
4
4
<% @routes.each do | template, path_item | %>
5
5
path '<%= template %>' do
6
6
<% unless path_item[:params].empty? -%>
You can’t perform that action at this time.
0 commit comments