     fail( errors.join("\n") + "\n" ) if errors.length > 0
 
   cleanup_environment: ->
-    @_mock_methods.restore_original_methods()
+    @_mock_methods.uninstall_mock_methods()
     @uninstall_expects_method()
 
   check_usage: (args) ->

  find_errors: ->
    @_list.reduce ( (errors, mock_method) -> errors.concat(mock_method.find_errors()) ), []

  restore_original_methods: ->
    mock_method.restore_original_method() for mock_method in @_list


#

    expectation._called = yes
    throw expectation._throws if expectation._throws
    expectation._returns

  mock_method.uninstall = ->
    if original_method?
      object[method_name] = original_method
    else
      delete object[method_name]
    
  mock_method.create_expectation = ->
    expectation = new Expectation()
    expectations.register(expectation)
    expectation

  mock_method.find_errors = ->
    expectations.find_errors(method_name)
