module Spec::Expectations
Defined in:
spec/expectations.crInstance Method Summary
- #be
- #be(value)
- #be_close(expected, delta)
- #be_false
- #be_falsey
- #be_nil
- #be_true
- #be_truthy
-
#contain(expected)
Passes if actual includes expected.
- #eq(value)
- #match(value)
Macro Summary
- be_a(type)
- expect_raises(klass, message, file = __FILE__, line = __LINE__)
- expect_raises(klass)
- expect_raises
Instance Method Detail
def contain(expected)
#
Passes if actual includes expected. Works on collections and String. @param expected - item expected to be contained in actual