Skip to content

Commit cc48a65

Browse files
authored
Update README.md
Describe ignored_unknown_status in Readme
1 parent 438bcbc commit cc48a65

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,11 @@ Here is how to set it up:
203203
204204
### Configure test coverage
205205
206-
OpenapiFirst::Test raises an error when a request is not defined. You can deactivate this with:
206+
OpenapiFirst::Test raises an error when a response status is not defined. You can deactivate this with:
207207
208208
```ruby
209209
OpenapiFirst::Test.setup do |test|
210-
# …
211-
test.ignore_unknown_requests = true
210+
[403, 401].each { test.ignored_unknown_status << it }
212211
end
213212
```
214213
@@ -234,6 +233,15 @@ OpenapiFirst::Test.setup do |test|
234233
end
235234
```
236235
236+
OpenapiFirst::Test raises an error when a request is not defined. You can deactivate this with:
237+
238+
```ruby
239+
OpenapiFirst::Test.setup do |test|
240+
# …
241+
test.ignore_unknown_requests = true
242+
end
243+
```
244+
237245
### Test assertions
238246
239247
openapi_first ships with a simple but powerful Test method to run request and response validation in your tests without using the middlewares. This is designed to be used with rack-test or Ruby on Rails integration tests or request specs.

0 commit comments

Comments
 (0)