class Minitest::Expectation(T)
- Minitest::Expectation(T)
- Reference
- Object
Included Modules
Defined in:
expectations.crConstructors
Instance Method Summary
- #must_be_close_to(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #must_be_empty(message = nil, file = __FILE__, line = __LINE__)
- #must_be_instance_of(obj, message = nil, file = __FILE__, line = __LINE__)
- #must_be_nil(message = nil, file = __FILE__, line = __LINE__)
- #must_be_same_as(expected, message = nil, file = __FILE__, line = __LINE__)
- #must_be_within_delta(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #must_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #must_equal(expected, message = nil, file = __FILE__, line = __LINE__)
- #must_include(obj, message = nil, file = __FILE__, line = __LINE__)
- #must_match(pattern, message = nil, file = __FILE__, line = __LINE__)
- #wont_be_close_to(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #wont_be_empty(message = nil, file = __FILE__, line = __LINE__)
- #wont_be_instance_of(obj, message = nil, file = __FILE__, line = __LINE__)
- #wont_be_nil(message = nil, file = __FILE__, line = __LINE__)
- #wont_be_same_as(expected, message = nil, file = __FILE__, line = __LINE__)
- #wont_be_within_delta(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #wont_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
- #wont_equal(expected, message = nil, file = __FILE__, line = __LINE__)
- #wont_include(obj, message = nil, file = __FILE__, line = __LINE__)
- #wont_match(pattern, message = nil, file = __FILE__, line = __LINE__)
Instance methods inherited from module Minitest::Assertions
assert(actual, message = nil, file = __FILE__, line = __LINE__)assert(message = nil, file = __FILE__, line = __LINE__, &) assert, assert_empty(actual, message = nil, file = __FILE__, line = __LINE__) assert_empty, assert_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__) assert_equal, assert_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__) assert_in_delta, assert_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) assert_in_epsilon, assert_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) assert_includes, assert_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) assert_instance_of, assert_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
assert_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) assert_match, assert_nil(actual, message = nil, file = __FILE__, line = __LINE__) assert_nil, assert_output(stdout = nil, stderr = nil, file = __FILE__, line = __LINE__, &) assert_output, assert_raises(message : String | Nil = nil, file = __FILE__, line = __LINE__, &)
assert_raises(klass : T.class, file = __FILE__, line = __LINE__, &) forall T assert_raises, assert_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) assert_same, assert_silent(file = __FILE__, line = __LINE__, &) assert_silent, capture_io(&) capture_io, diff(expected, actual) diff, flunk(message = "Epic Fail!", file = __FILE__, line = __LINE__) flunk, refute(actual, message = nil, file = __FILE__, line = __LINE__)
refute(message = nil, file = __FILE__, line = __LINE__, &) refute, refute_empty(actual, message = nil, file = __FILE__, line = __LINE__) refute_empty, refute_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__) refute_equal, refute_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__) refute_in_delta, refute_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) refute_in_epsilon, refute_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) refute_includes, refute_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) refute_instance_of, refute_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__)
refute_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) refute_match, refute_nil(actual, message = nil, file = __FILE__, line = __LINE__) refute_nil, refute_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) refute_same, skip(message = "", file = __FILE__, line = __LINE__) skip
Class methods inherited from module Minitest::Assertions
diff?
diff?
Constructor Detail
Instance Method Detail
def must_be_within_delta(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
#
def must_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
#
def wont_be_within_delta(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__)
#
def wont_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__)
#