class Mocha::Expectation

def initialize(mock, expected_method_name, backtrace = nil)

Other tags:
    Private: -
def initialize(mock, expected_method_name, backtrace = nil)
  @mock = mock
  @method_matcher = MethodMatcher.new(expected_method_name.to_sym)
  @parameters_matcher = ParametersMatcher.new
  @block_matcher = BlockMatchers::OptionalBlock.new
  @ordering_constraints = []
  @side_effects = []
  @cardinality = Cardinality.new.exactly(1)
  @return_values = ReturnValues.new
  @yield_parameters = YieldParameters.new
  @backtrace = backtrace || caller
end