         # we implicitly assume that the user means an empty object.
         result_spec.value ?= {}
 
-        createAndInject result_spec.value, result_spec.on_value
+        createAndInjectHandlers result_spec.value, result_spec.on_value
 
       if result_spec.self is true
         return expectation.host

  temp_obj = create_liar expectations
  temp_obj['untitled_function']

createAndInject = (host, expectations) ->
  expectations = [ expectations ] if not Array.isArray expectations
  for expectation in expectations
    preprocessExpectation expectation

create_liar = (expectations) ->
  createAndInjectHandlers {}, expectations

# Inject built-in plugins
create_liar.plugins = require './plugins'
