   object[ method_name ]?
 
 does_object_have_property = (object, method_name) ->
-  object[ method_name ]? and (typeof object[ method_name ]) != 'function'
+  object[ method_name ]? and (typeof object[ method_name ]) isnt 'function'
 
 is_mock_object = (object) ->
   object.constructor.name == 'MockObject'

  throw new Error(format(message, args...))

#  
# http://stackoverflow.com/questions/9880578/coffeescript-version-of-string-format-sprintf-etc-for-javascript-or-node-js
#
format = (message, args...) ->    # format("{0} + {1} = {2}", 2, 2, "four") => "2 + 2 = four"
  message.replace /{(\d)+}/g, (match, i) ->

      ( @_args.every ( element, i ) -> element == args[ i ] )

  find_errors: ->
    if @_called then "" else format(messages.ExpectationNeverCalled, @_method_name, @_args)

  # private

