lib/composable_operations/matcher/execution.rb in composable_operations-0.9.0 vs lib/composable_operations/matcher/execution.rb in composable_operations-0.9.1

- old
+ new

@@ -73,13 +73,14 @@ def failure_message "the operation failed to perform for the following reason(s):\n#{failure_reasons}" end - def negative_failure_message + def failure_message_when_negated "the operation succeeded unexpectedly" end + alias negative_failure_message failure_message_when_negated private def failure_reasons reasons = [] @@ -118,12 +119,13 @@ def failure_message "the operation did not fail to perform for the following reason(s):\n#{failure_reasons}" end - def negative_failure_message + def failure_message_when_negated "the operation failed unexpectedly" end + alias negative_failure_message failure_message_when_negated protected attr_reader :message