Skip to content

Commit

Permalink
Document the true matcher
Browse files Browse the repository at this point in the history
The documentation did not describe this matcher, leading one to
believe it would result in an error.
  • Loading branch information
jeremyevans committed Apr 23, 2020
1 parent b2eacca commit 42eecf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rdoc
Expand Up @@ -418,6 +418,10 @@ You can provide an array to specify multiple request methods and match on any of
{method: :post} # matches POST
{method: ['post', 'patch']} # matches POST and PATCH

=== true

If +true+ is given directly as a matcher, it always matches.

=== false, nil

If +false+ or +nil+ is given directly as a matcher, it doesn't match anything.
Expand Down

0 comments on commit 42eecf1

Please sign in to comment.