 
   # private
   
-  _throw_unknown_expectation = (expectation) ->
-    throw new Error( "#{expectation} does not match any expectations" )
+  _throw_unknown_expectation = (method_name, args) ->
+    throw new Error( "#{method_name}(#{args}) does not match any expectations" )
 
 
 #


#
# mock()
#
publish.mock = (test_function) ->
  try

  @build_mocked_method: (method_name) ->
    (args...) ->
      expectation = AllExpectations.find_expectation(@, method_name, args...)
      _throw_unknown_expectation(method_name, args) unless expectation?
      AllExpectations.check_for_duplicate_expectations()
      expectation._called = yes
      throw expectation._throws if expectation._throws?
