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