 
   # Access the cache for a particular collection.
   #    manager.storage("time_entries").get(12).get("title")
-  storage: (name) =>
+  storage: (name) ->
     @getCollectionDetails(name).storage
 
-  dataUsage: =>
+  dataUsage: ->
     sum = 0
     for dataType in @collectionNames()
       sum += @storage(dataType).length
     sum
 
-  reset: =>
+  reset: ->
     for name, attributes of @collections
       attributes.storage.reset []
       attributes.cache = {}
 
   # Access details of a collection.  An error will be thrown if the collection cannot be found.
-  getCollectionDetails: (name) =>
+  getCollectionDetails: (name) ->
     @collections[name] || @collectionError(name)
 
-  collectionNames: =>
+  collectionNames: ->
     _.keys(@collections)
 
-  collectionExists: (name) =>
+  collectionExists: (name) ->
     !!@collections[name]
 
-  setErrorInterceptor: (interceptor) =>
+  setErrorInterceptor: (interceptor) ->
     @errorInterceptor = interceptor || (handler, modelOrCollection, options, jqXHR, requestParams) -> handler?(jqXHR)
 
-  loadModel: (name, id, options = {}) =>
+  loadModel: (name, id, options = {}) ->
     return if not id
 
     successCallback = options.success

    ml.done(successCallback) if successCallback? && _.isFunction(successCallback)
    ml.externalObject

  loadCollection: (name, options = {}) =>
    successCallback = options.success
    options = _.omit(options, 'success')


    else
      throw "You must call #enableExpectations on your instance of Brainstem.StorageManager before you can set expectations."

  stubImmediate: (collectionName, options) ->
    @stub collectionName, $.extend({}, options, immediate: true)

  enableExpectations: ->
    @expectations = []

  handleExpectations: (loader) ->
    name = loader.getCollectionName()

    for expectation in @expectations
