Module: Spec::Adapters::MockFramework

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

Instance Method Summary collapse

Methods included from FlexMock::MockContainer

#flexmock, #flexmock_close, #flexmock_remember, #flexmock_teardown, #flexmock_verify, #rails_version, #should_render_view

Methods included from FlexMock::Ordering

#flexmock_allocate_order, #flexmock_current_order, #flexmock_current_order=, #flexmock_groups, #flexmock_validate_order

Methods included from Mocks::ExampleMethods

#allow_message_expectations_on_nil, #mock, #stub_everything

Methods included from Mocks::ArgumentConstraints

#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/gems/rspec-1.1.12/lib/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/gems/rspec-1.1.12/lib/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/gems/rspec-1.1.12/lib/adapters/mock_frameworks/flexmock.rb', line 15

def verify_mocks_for_rspec
  RR::Space.instance.verify_doubles
end