Module: Assert::Mocha::Assertions

Defined in:
lib/assert-mocha.rb

Instance Method Summary collapse

Instance Method Details

#assert_mocks(counter = nil) ⇒ Object



24
25
26
27
28
29
# File 'lib/assert-mocha.rb', line 24

def assert_mocks(counter = nil)
  assert_nothing_raised do
    yield
    mocha_verify(counter)
  end
end