Module: Spy::TestUnitAdapter

Includes:
API
Defined in:
lib/spy/integration.rb

Constant Summary

Constants included from API

API::DidNotReceiveError

Class Method Summary collapse

Instance Method Summary collapse

Methods included from API

#assert_received, #assert_received_with, #have_received

Class Method Details

.included(mod) ⇒ Object



26
27
28
# File 'lib/spy/integration.rb', line 26

def self.included(mod)
  mod.teardown :spy_teardown, :after => :append
end

Instance Method Details

#spy_teardownObject



30
31
32
# File 'lib/spy/integration.rb', line 30

def spy_teardown
  Spy.teardown
end