     for outer in [0.._expectations.length-2]
       for inner in [outer+1.._expectations.length-1]
         if _expectations[outer].equals( _expectations[inner] )
-          throw_duplicate_expectation("#{_expectations[outer]._method_name}(#{_expectations[outer]._args})")
+          _throw_duplicate_expectation("#{_expectations[outer]._method_name}(#{_expectations[outer]._args})")
 
   @verify_all_expectations: ->
     errors = _find_all_errors()

#
# Expects
#
class Expects
  
  @expects: (method_name) ->

  _install_mock_method: ->
    object = if is_class(@_object) then @_object.prototype else @_object
    original_method = object[ @_method_name ]
    object[ @_method_name ] = MockedMethod.build_mocked_method(@_method_name)
    if original_method?
      @uninstall_mocked_method = -> object[ @_method_name ] = original_method
    else
