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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Adds an expectation that a method identified by <tt>symbol</tt> must be called exactly once with any parameters. Returns the new expectation which can be further modified by methods on Mocha::Expectation.
- !ruby/struct:SM::Flow::VERB 
  body: "  product = Product.new\n  product.expects(:save).returns(true)\n  assert_equal false, product.save\n"
- !ruby/struct:SM::Flow::P 
  body: The original implementation of <tt>Product#save</tt> is replaced temporarily.
- !ruby/struct:SM::Flow::P 
  body: The original implementation of <tt>Product#save</tt> is restored at the end of the test.
full_name: Object#expects
is_singleton: false
name: expects
params: " expects(symbol) -> expectation\n"
visibility: public
