# File lib/mspec/matchers/base.rb, line 13 def <(expected) unless @actual < expected SpecExpectation.fail_with("Expected #{@actual.pretty_inspect}", "to be less than #{expected.pretty_inspect}") end end
# File lib/mspec/matchers/base.rb, line 20 def <=(expected) unless @actual <= expected SpecExpectation.fail_with("Expected #{@actual.pretty_inspect}", "to be less than or equal to #{expected.pretty_inspect}") end end
# File lib/mspec/matchers/base.rb, line 6 def ==(expected) unless @actual == expected SpecExpectation.fail_with("Expected #{@actual.pretty_inspect}", "to equal #{expected.pretty_inspect}") end end
# File lib/mspec/matchers/base.rb, line 41 def =~(expected) unless @actual =~ expected SpecExpectation.fail_with("Expected #{@actual.pretty_inspect}", "to match #{expected.pretty_inspect}") end end
Generated with the Darkfish Rdoc Generator 2.