Module

RUNIT::Assert

Inheritance
Included Modules
Test::Unit::Assertions

Methods

Instance

Visibility Signature
public assert_equal_float (expected, actual, delta, message="")
public assert_exception (exception, message="", &block)
public assert_fail (message="")
public assert_match (actual_string, expected_re, message="")
public assert_matches (*args)
public assert_no_exception (*args, &block)
public assert_not_match (actual_string, expected_re, message="")
public assert_not_nil (actual, message="")
public assert_respond_to (method, object, message="")
public assert_send (object, method, *args)
public called_internally? ()
public setup_assert ()

Instance Method Detail

assert_equal_float(expected, actual, delta, message="")

assert_exception(exception, message="", &block)

assert_fail(message="")

assert_match(actual_string, expected_re, message="")

To deal with the fact that RubyUnit does not check that the regular expression is, indeed, a regular expression, if it is not, we do our own assertion using the same semantics as RubyUnit

assert_matches(*args)

assert_no_exception(*args, &block)

assert_not_match(actual_string, expected_re, message="")

assert_not_nil(actual, message="")

assert_respond_to(method, object, message="")

assert_send(object, method, *args)

called_internally?()

setup_assert()