Module: MiniTest::Assertions

Defined in:
lib/bogus/minitest.rb

Instance Method Summary collapse

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, message = nil)
  with_bogus_matcher_for(subject, method, args) do |matcher, result|
    assert(result, message || matcher.failure_message_for_should)
  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, message = nil)
  with_bogus_matcher_for(subject, method, args) do |matcher, result|
    refute(result, message || matcher.failure_message_for_should_not)
  end
end