Commit 65167979 by Emil Sågfors

Replace deprecated RSpec failure_message_for_should syntax

parent ca58b27f
......@@ -4,6 +4,6 @@ require 'rspec/expectations'
RSpec::Matchers.define :act_as_paranoid do
match { |subject| subject.class.ancestors.include?(Paranoia) }
failure_message_for_should { "#{subject.class} should use `acts_as_paranoid`" }
failure_message_for_should_not { "#{subject.class} should not use `acts_as_paranoid`" }
failure_message { "#{subject.class} should use `acts_as_paranoid`" }
failure_message_when_negated { "#{subject.class} should not use `acts_as_paranoid`" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment