   # TODO: add description
   args: (args...) ->
     @_check_args_usage(args...)
-    @_check_if_duplicate_signature(@_current_signature().method_name, args...)
+    @_check_if_duplicate_signature(@_current_method_name(), args...)
     @_current_signature().args = args
     @_set_state("args")
     @

  # TODO: add description
  expects: (method_name) ->
    @_check_expects_usage(method_name)
    @signatures.unshift(new MethodSignature(method_name))
    # TODO: use ?=, not =
    @[ method_name ] = @_define_expected_method(method_name)
    @_set_state("expects")

    
  # TODO: add description
  matches: (method_name, args...) ->
    ( @method_name == method_name ) and
      ( @args.length == args.length ) and
      ( @args.every ( element, i ) -> element == args[ i ] )

