Update readme

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

View File

@ -452,14 +452,15 @@ after do |example|
example.metadata[:response][:examples] = { 'application/json' => JSON.parse(response.body, symbolize_names: true) } example.metadata[:response][:examples] = { 'application/json' => JSON.parse(response.body, symbolize_names: true) }
end 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
```ruby - or add the following to your `application.rb`:
RSpec.configure do |config| ```ruby
config.swagger_dry_run = false RSpec.configure do |config|
end config.swagger_dry_run = false
``` end
```
### Running tests without documenting ### ### Running tests without documenting ###