Skip to content

Commit

Permalink
make gem compatible with rspec 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
madmax committed Feb 24, 2014
1 parent 5e2c6ec commit aebd42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cancan/matchers.rb
Expand Up @@ -4,11 +4,11 @@
ability.can?(*args)
end

failure_message_for_should do |ability|
failure_message do |ability|
"expected to be able to #{args.map(&:inspect).join(" ")}"
end

failure_message_for_should_not do |ability|
failure_message_when_negated do |ability|
"expected not to be able to #{args.map(&:inspect).join(" ")}"
end
end

0 comments on commit aebd42e

Please sign in to comment.