# File lib/rspec/mocks/method_double.rb, line 147 def add_negative_expectation(error_generator, expectation_ordering, expected_from, &implementation) configure_method expectation = NegativeMessageExpectation.new(error_generator, expectation_ordering, expected_from, @method_name, implementation) expectations.unshift expectation expectation end