Class: Object

Inherits:
BasicObject
Defined in:
lib/minitest/mustwonted/object.rb

Overview

The object level ‘must` | `wont` hooks

Instance Method Summary collapse

Instance Method Details

#must(*args) ⇒ Object

kicks in the ‘must` assertion on the object

smth.must smth
smth.must == somth
....


12
13
14
# File 'lib/minitest/mustwonted/object.rb', line 12

def must(*args)
  Minitest::MustWonted::Matcher.must(self, *args)
end

#wont(*args) ⇒ Object

kicks in the ‘wont` assertion on the object

smth.wont smth
smth.wont == somth
....


23
24
25
# File 'lib/minitest/mustwonted/object.rb', line 23

def wont(*args)
  Minitest::MustWonted::Matcher.wont(self, *args)
end