-
-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deprecated matcher method on DenyAccessMatcher
`DenyAccessMatcher` used `#negative_failure_message`, which has been deprecated in favor of the newer RSpec matcher method `#failure_message_when_negated`. Renamed this instance variable and the `attr_reader` to remove RSpec 3.0 deprecation warnings when using `DenyAccessMatcher` in specs. Added aliases `failure_message_for_should` and `failure_message_for_should_not` to maintain RSpec 1.2+, < 3.0 compatibility.
- Loading branch information
1 parent
e4208f7
commit 663ae99
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters