class Object

The object level ‘must` | `wont` hooks

Public Instance Methods

must(*args) click to toggle source

kicks in the ‘must` assertion on the object

smth.must smth
smth.must == somth
....
# File lib/minitest/mustwonted/object.rb, line 12
def must(*args)
  Minitest::MustWonted::Matcher.must(self, *args)
end
wont(*args) click to toggle source

kicks in the ‘wont` assertion on the object

smth.wont smth
smth.wont == somth
....
# File lib/minitest/mustwonted/object.rb, line 23
def wont(*args)
  Minitest::MustWonted::Matcher.wont(self, *args)
end