mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Update readme
This commit is contained in:
parent
7b01ae1aa1
commit
56eec5948e
15
README.md
15
README.md
@ -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 ###
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user