Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix matcher compatibility with RSpec 2 #197

Merged
merged 1 commit into from
Jan 18, 2015

Conversation

lime
Copy link
Contributor

@lime lime commented Dec 23, 2014

I messed up with #156. I was thinking of the other RSpec matcher syntax where you define failure_message_when_negated as a method, rather than use it as a DSL call...

This way of retaining compatibility with both RSpec 2 & 3 is taken straight from the corresponding file in the pundit gem.

The changes in 40b7af5 were insufficient, this should do the trick.
@lime lime mentioned this pull request Dec 23, 2014
jhawthorn added a commit that referenced this pull request Jan 18, 2015
Fix matcher compatibility with RSpec 2
@jhawthorn jhawthorn merged commit df0ad1b into rubysherpas:rails4 Jan 18, 2015
@jhawthorn
Copy link
Collaborator

Thanks

@lime lime deleted the rspec2-compat branch January 18, 2015 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants