Module: FlexMock::TestUnitAssertions

Includes:
SpyDescribers
Included in:
TestCase
Defined in:
lib/flexmock/test_unit_assert_spy_called.rb

Instance Method Summary collapse

Methods included from SpyDescribers

#describe_spy_expectation, #describe_spy_negative_expectation, #spy_description

Instance Method Details

#assert_spy_called(spy, method_name, *args) ⇒ Object



7
8
9
# File 'lib/flexmock/test_unit_assert_spy_called.rb', line 7

def assert_spy_called(spy, method_name, *args)
  _assert_spy_called(false, spy, method_name, *args)
end

#assert_spy_not_called(spy, method_name, *args) ⇒ Object



11
12
13
# File 'lib/flexmock/test_unit_assert_spy_called.rb', line 11

def assert_spy_not_called(spy, method_name, *args)
  _assert_spy_called(true, spy, method_name, *args)
end