module Minitest::Assertions
Direct including types
Defined in:
assertions.crClass Method Summary
Instance Method Summary
- #assert(actual, message = nil, file = __FILE__, line = __LINE__)
- #assert(message = nil, file = __FILE__, line = __LINE__, &)
- #assert_empty(actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #assert_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #assert_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__)
- #assert_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__)
- #assert_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_nil(actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_output(stdout = nil, stderr = nil, file = __FILE__, line = __LINE__, &)
- #assert_raises(message : String | Nil = nil, file = __FILE__, line = __LINE__, &)
- #assert_raises(klass : T.class, file = __FILE__, line = __LINE__, &) forall T
- #assert_same(expected, actual, message = nil, file = __FILE__, line = __LINE__)
- #assert_silent(file = __FILE__, line = __LINE__, &)
- #capture_io(&)
- #diff(expected, actual)
- #flunk(message = "Epic Fail!", file = __FILE__, line = __LINE__)
- #refute(actual, message = nil, file = __FILE__, line = __LINE__)
- #refute(message = nil, file = __FILE__, line = __LINE__, &)
- #refute_empty(actual, message = nil, file = __FILE__, line = __LINE__)
- #refute_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__)
- #refute_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #refute_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #refute_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__)
- #refute_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__)
- #refute_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
- #refute_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__)
- #refute_nil(actual, message = nil, file = __FILE__, line = __LINE__)
- #refute_same(expected, actual, message = nil, file = __FILE__, line = __LINE__)
- #skip(message = "", file = __FILE__, line = __LINE__)
Macro Summary
- assert_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__)
- refute_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__)
Class Method Detail
Instance Method Detail
def assert_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
#
def assert_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__)
#
def assert_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
#
def assert_raises(message : String | Nil = nil, file = __FILE__, line = __LINE__, &)
#
def refute_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
#
def refute_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__)
#
def refute_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
#
Macro Detail
macro assert_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__)
#
macro refute_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__)
#