Commit 251f26f6 by andrew morton Committed by GitHub

Merge pull request #22 from drewish/little-fixes

More little fixes
parents a48ef4a2 20e2f945
# Contributing
## Running tests
The `make_site.sh` script will create a test site for a specific version of
Rails and run the tests:
```
RAILS_VERSION=4.2.0
./make_site.sh
```
Once the test site is created you can just re-run the tests:
```
bundle exec rspec
```
...@@ -61,4 +61,5 @@ bundle exec rake swagger ...@@ -61,4 +61,5 @@ bundle exec rake swagger
``` ```
Now you can use Swagger UI or the renderer of your choice to display the Now you can use Swagger UI or the renderer of your choice to display the
formatted documentation. formatted documentation. [swagger_engine](https://github.com/batdevis/swagger_engine)
works pretty well and supports multiple documents.
require 'swagger_helper' require 'swagger_helper'
RSpec.describe '<%= file_name %>', type: :request do RSpec.describe '<%= controller_path %>', type: :request do
<% @routes.each do | template, path_item | %> <% @routes.each do | template, path_item | %>
path '<%= template %>' do path '<%= template %>' do
<% unless path_item[:params].empty? -%> <% unless path_item[:params].empty? -%>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment