Commit b020b9d5 by Emil Sågfors

Rephrase matcher failure messages according to RSpec 3 style

parent 65167979
......@@ -4,6 +4,6 @@ require 'rspec/expectations'
RSpec::Matchers.define :act_as_paranoid do
match { |subject| subject.class.ancestors.include?(Paranoia) }
failure_message { "#{subject.class} should use `acts_as_paranoid`" }
failure_message_when_negated { "#{subject.class} should not use `acts_as_paranoid`" }
failure_message { "expected #{subject.class} to use `acts_as_paranoid`" }
failure_message_when_negated { "expected #{subject.class} not to 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