Module: MiniTest::Assertions
- Defined in:
- lib/bogus/minitest.rb
Instance Method Summary collapse
- #assert_received(subject, method, args, message = nil) ⇒ Object
- #refute_received(subject, method, args, message = nil) ⇒ Object
Instance Method Details
#assert_received(subject, method, args, message = nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/bogus/minitest.rb', line 5 def assert_received(subject, method, args, = nil) with_bogus_matcher_for(subject, method, args) do |matcher, result| assert(result, || matcher.) end end |
#refute_received(subject, method, args, message = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/bogus/minitest.rb', line 11 def refute_received(subject, method, args, = nil) with_bogus_matcher_for(subject, method, args) do |matcher, result| refute(result, || matcher.) end end |