Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Pollack committed Apr 13, 2016
1 parent 4db5069 commit 3cc4112
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,17 @@ Airborne.configure do |config|
end
```

`match_expected_default` requires all the keys in the expected JSON are present in the response.
`match_actual_default` requires that the keys in the response are tested in the expected Hash.

So you can do the following combinations:

`match_expected_default=false`, `match_actual_default=false` - check only intersection
`match_expected_default=false`, `match_actual_default=true` - raise on extra key in response
`match_expected_default=true`, `match_actual_default=false` - raise on missing key in response
`match_expected_default=true`, `match_actual_default=true` - expect exact match


Airborne sets `match_expected_default` to `true` and `match_actual_default` to `false` by default.

You can use the `match_expected` and `match_actual` settings to override your global defaults in test blocks like this.
Expand Down

0 comments on commit 3cc4112

Please sign in to comment.