Add alternative way to load gem for optimization

Most projects don't load rspec in production mode. So makes sense to add it to guide.
This commit is contained in:
goutham 2018-05-20 18:22:06 +03:00 committed by GitHub
parent 6f8bbdbf2c
commit 799fc70d3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,19 @@ Once you have an API that can describe itself in Swagger, you've opened the trea
```ruby ```ruby
gem 'rswag' gem 'rswag'
``` ```
or if you like to avoid loading rspec in other bundler groups.
```ruby
# Gemfile
gem 'rswag-api'
gem 'rswag-ui'
groups :test do
gem 'rspec-rails'
gem 'rswag-specs'
end
```
2. Run the install generator 2. Run the install generator