Module: Spec::Adapters::MockFramework

Includes:
FlexMock::MockContainer, Mocha::Standalone, RR::Extensions::InstanceMethods, Mocks::ExampleMethods
Defined in:
lib/spec/adapters/mock_frameworks/rr.rb,
lib/spec/adapters/mock_frameworks/mocha.rb,
lib/spec/adapters/mock_frameworks/rspec.rb,
lib/spec/adapters/mock_frameworks/flexmock.rb

Instance Method Summary collapse

Methods included from Mocks::ExampleMethods

#allow_message_expectations_on_nil, #mock, #stub_everything

Methods included from Mocks::ArgumentMatchers

#any_args, #anything, #boolean, #duck_type, #hash_including, #hash_not_including, #instance_of, #kind_of, #no_args

Instance Method Details

#setup_mocks_for_rspecObject



10
11
12
# File 'lib/spec/adapters/mock_frameworks/rr.rb', line 10

def setup_mocks_for_rspec
  RR::Space.instance.reset
end

#teardown_mocks_for_rspecObject



16
17
18
# File 'lib/spec/adapters/mock_frameworks/rr.rb', line 16

def teardown_mocks_for_rspec
  RR::Space.instance.reset
end

#verify_mocks_for_rspecObject

No setup required



15
16
17
# File 'lib/spec/adapters/mock_frameworks/flexmock.rb', line 15

def verify_mocks_for_rspec
  RR::Space.instance.verify_doubles
end