lib/arrthorizer/rspec/matchers.rb in arrthorizer-0.4.1 vs lib/arrthorizer/rspec/matchers.rb in arrthorizer-0.4.2

- old
+ new

@@ -17,10 +17,10 @@ def failure_message "Expected role #{@role.name} to apply in context #{context.inspect}\nfor user #{user.inspect}, but it does not apply!" end - def negative_failure_message + def failure_message_when_negates "Expected role #{@role.name} not to apply in context #{context.inspect}\nfor user #{user.inspect}, but it applies!" end def with_context(hash) @context = to_context(hash)