Update readme

This commit is contained in:
Igor Kapkov 2020-03-25 16:57:58 +11:00
parent 7b01ae1aa1
commit 56eec5948e

View File

@ -452,9 +452,10 @@ after do |example|
example.metadata[:response][:examples] = { 'application/json' => JSON.parse(response.body, symbolize_names: true) }
end
```
You need to disable --dry-run option for Rspec > 3
You need to disable `--dry-run` option for Rspec > 3. You can do one of the following:
Add to application.rb:
- use environment varible `SWAGGER_DRY_RUN` set to `1` during generation command
- or add the following to your `application.rb`:
```ruby
RSpec.configure do |config|
config.swagger_dry_run = false