--- !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 once. Note that this is the default behaviour for an expectation, but you may wish to use it for clarity/emphasis.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:expected_method).once\n  object.expected_method\n  # =&gt; verify succeeds\n\n  object = mock()\n  object.expects(:expected_method).once\n  object.expected_method\n  object.expected_method\n  # =&gt; verify fails\n\n  object = mock()\n  object.expects(:expected_method).once\n  # =&gt; verify fails\n"
full_name: Mocha::Expectation#once
is_singleton: false
name: once
params: " once() -> expectation\n"
visibility: public
