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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a mock object that accepts calls to any method.
- !ruby/struct:SM::Flow::P 
  body: By default it will return <tt>nil</tt> for any method call.
- !ruby/struct:SM::Flow::P 
  body: <tt>block</tt> is a block to be evaluated against the mock object instance, giving an alernative way to set up expectations &amp; stubs.
- !ruby/struct:SM::Flow::P 
  body: "<tt>name</tt> and <tt>stubbed_methods</tt> work in the same way as for #stub."
- !ruby/struct:SM::Flow::VERB 
  body: "  def test_product\n    product = stub_everything('ipod_product', :price =&gt; 100)\n    assert_nil product.manufacturer\n    assert_nil product.any_old_method\n    assert_equal 100, product.price\n  end\n"
full_name: Mocha::API#stub_everything
is_singleton: false
name: stub_everything
params: " stub_everything(name, &block) -> mock object\n\
  stub_everything(stubbed_methods = {}, &block) -> mock object\n\
  stub_everything(name, stubbed_methods = {}, &block) -> mock object\n"
visibility: public
