--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Chooses what mock framework to use. Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Spec::Runner.configure do |config|\n    config.mock_with :rspec, :mocha, :flexmock, or :rr\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "To use any other mock framework, you'll have to provide your own adapter. This is simply a module that responds to setup_mocks_for_rspec, verify_mocks_for_rspec and teardown_mocks_for_rspec. These are your hooks into the lifecycle of a given example. RSpec will call setup_mocks_for_rspec before running anything else in each Example. After executing the #after methods, RSpec will then call verify_mocks_for_rspec and teardown_mocks_for_rspec (this is guaranteed to run even if there are failures in verify_mocks_for_rspec)."
- !ruby/struct:SM::Flow::P 
  body: "Once you've defined this module, you can pass that to mock_with:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Spec::Runner.configure do |config|\n    config.mock_with MyMockFrameworkAdapter\n  end\n"
full_name: Spec::Example::Configuration#mock_with
is_singleton: false
name: mock_with
params: (mock_framework)
visibility: public
