class RSpec::Mocks::MessageExpectation

def twice(&block)

Returns:
  • (MessageExpectation) - self, to support further chaining.
def twice(&block)
  self.inner_implementation_action = block
  set_expected_received_count :exactly, 2
  self
end