From aebd42e23203fc1f175dc6f8a69eaea665ba5bc4 Mon Sep 17 00:00:00 2001 From: Grzegorz Derebecki Date: Mon, 24 Feb 2014 11:44:37 +0100 Subject: [PATCH] make gem compatible with rspec 3.x --- lib/cancan/matchers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cancan/matchers.rb b/lib/cancan/matchers.rb index 4a4fb947..c246bc51 100644 --- a/lib/cancan/matchers.rb +++ b/lib/cancan/matchers.rb @@ -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