   expects_method
     
     
-new_MockMethod = (object, method_name) ->
+MockMethod = (object, method_name) ->
 
   expectations = new ExpectationList()
   original_method = undefined

    fail(messages.ReservedMethodName, method_name) if is_reserved_method_name(method_name)
    
  install_mock_method = (self, method_name) ->
    mock_method = new_MockMethod(self, method_name)
    mock_method.install()
    mock_methods.register(mock_method)
    

    cleanup_environment()


ExpectsMethod = (expects_method_name, mock_methods)->
  
  expects_method = (method_name) ->
    check_usage(@, method_name, arguments.length)
