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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Modifies expectation so that the expected method must be called exactly twice.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:expected_method).twice\n  object.expected_method\n  object.expected_method\n  # =&gt; verify succeeds\n\n  object = mock()\n  object.expects(:expected_method).twice\n  object.expected_method\n  object.expected_method\n  object.expected_method\n  # =&gt; verify fails\n\n  object = mock()\n  object.expects(:expected_method).twice\n  object.expected_method\n  # =&gt; verify fails\n"
full_name: Mocha::Expectation#twice
is_singleton: false
name: twice
params: " twice() -> expectation\n"
visibility: public
