Merge pull request #247 from laurawatson/swaggerize-task

Update README
This commit is contained in:
Greg Myers 2019-10-17 18:28:37 +01:00 committed by GitHub
commit bf6bd59094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,14 +26,15 @@ Once you have an API that can describe itself in Swagger, you've opened the trea
gem 'rswag' gem 'rswag'
``` ```
or if you like to avoid loading rspec in other bundler groups. or if you like to avoid loading rspec in other bundler groups load the rswag-specs component separately.
Note: Adding it to the :development group is not strictly necessary, but without it, generators and rake tasks must be preceded by RAILS_ENV=test.
```ruby ```ruby
# Gemfile # Gemfile
gem 'rswag-api' gem 'rswag-api'
gem 'rswag-ui' gem 'rswag-ui'
group :test do group :development, :test do
gem 'rspec-rails' gem 'rspec-rails'
gem 'rswag-specs' gem 'rswag-specs'
end end