Skip to content

Commit 251f26f

Browse files
authored
Merge pull request #22 from drewish/little-fixes
More little fixes
2 parents a48ef4a + 20e2f94 commit 251f26f

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
```

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ bundle exec rake swagger
6161
```
6262

6363
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.

lib/generators/rspec/swagger/templates/spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'swagger_helper'
22

3-
RSpec.describe '<%= file_name %>', type: :request do
3+
RSpec.describe '<%= controller_path %>', type: :request do
44
<% @routes.each do | template, path_item | %>
55
path '<%= template %>' do
66
<% unless path_item[:params].empty? -%>

0 commit comments

Comments
 (0)