Spec::Matchers::Be
# File lib/spec/matchers/be.rb, line 113 def description "be #{@operator} #{expected_to_sentence}#{args_to_sentence}" end
# File lib/spec/matchers/be.rb, line 98 def failure_message_for_should "expected #{@operator} #{@expected}, got #{@actual.inspect}" end
# File lib/spec/matchers/be.rb, line 102 def failure_message_for_should_not message = 'should_not be #{@operator} #{@expected}' not only FAILED,it is a bit confusing. raise message << ([:===,:==].include?(@operator) ? "It might be more clearly expressed without the \"be\"?" : "It might be more clearly expressed in the positive?") end
Generated with the Darkfish Rdoc Generator 2.