vendor/gems/flexmock-0.8.5/test/asserts.rb
def assert_failure(message=nil)
      ex = assert_raises(Test::Unit::AssertionFailedError) { yield }
      if message
        case message
        when Regexp
          assert_match message, ex.message
        when String
          assert ex.message.index(message), "Error message '#{ex.message}' should contain '#{message}'"
        end
      end
      ex
    end
# Assertion helper used to assert validation failure.  If a 
# message is given, then the error message should match the 
# expected error message.
Assertion helper used to assert validation failure.  If a
message is given, then the error message should match the
expected error message.
Assertion helper used to assert validation failure . If a message is given then the error message should match the expected error message .
def assert_failure(message=nil)
      ex = assert_raises(Test::Unit::AssertionFailedError) { yield }
      if message
        case message
        when Regexp
          assert_match message, ex.message
        when String
          assert ex.message.index(message), "Error message '#{ex.message}' should contain '#{message}'"
        end
      end
      ex
    end
def assert_failure ( message = nil ) ex = assert_raises ( Test :: Unit :: AssertionFailedError ) { yield } if message case message when Regexp assert_match message , ex . message when String assert ex . message . index ( message ) , "Error message '#{ex.message}' should contain '#{message}'" end end ex end
Assertion helper used to assert validation failure.
Assertion helper used to assert validation failure .
message