Class to handle operator expectations.
13.should == 13 "hello".length.should_not == 2
# File lib/matchy/built_in/operator_expectations.rb, line 29 def fail!(operator) flunk @match ? failure_message(operator) : negative_failure_message(operator) end
# File lib/matchy/built_in/operator_expectations.rb, line 33 def failure_message(operator) "Expected #{@receiver.inspect} to #{operator} #{@expected.inspect}." end
Generated with the Darkfish Rdoc Generator 2.