spec/support/matchers/exit_with_code.rb in wp2middleman-0.0.1 vs spec/support/matchers/exit_with_code.rb in wp2middleman-0.0.2

- old
+ new

@@ -8,15 +8,15 @@ actual = e.status end actual and actual == exp_code end - failure_message_for_should do |block| + failure_message do |block| "expected block to call exit(#{exp_code}) but exit" + (actual.nil? ? " not called" : "(#{actual}) was called") end - failure_message_for_should_not do |block| + failure_message_when_negated do |block| "expected block not to call exit(#{exp_code})" end description do "expect block to call exit(#{exp_code})"