Module: RSpec::Mocks::AnyInstance
- Defined in:
- lib/rspec/mocks/any_instance.rb
Defined Under Namespace
Classes: Chain, ExpectationChain, Recorder, StubChain
Instance Method Summary
collapse
Instance Method Details
#__recorder ⇒ Object
251
252
253
|
# File 'lib/rspec/mocks/any_instance.rb', line 251
def __recorder
@__recorder ||= AnyInstance::Recorder.new(self)
end
|
#any_instance ⇒ Object
238
239
240
241
|
# File 'lib/rspec/mocks/any_instance.rb', line 238
def any_instance
RSpec::Mocks::space.add(self)
__recorder
end
|
#rspec_verify ⇒ Object
243
244
245
246
247
248
249
|
# File 'lib/rspec/mocks/any_instance.rb', line 243
def rspec_verify
__recorder.verify
super
ensure
__recorder.stop_all_observation!
@__recorder = nil
end
|