 {TestStorageAdapter, AsyncTestStorageAdapter} = if typeof require isnt 'undefined' then require './model_helper' else window
+helpers = if typeof require is 'undefined' then window.viewHelpers else require '../view/view_helper'
 
 QUnit.module "Batman.Model One-To-One Associations"
   setup: ->


    @storeAdapter = new AsyncTestStorageAdapter @Store
    @storeAdapter.storage =
      'stores1': {name: "One", id: 1}
    @Store.persist @storeAdapter

    class @Product extends Batman.Model
      @encode 'id', 'name'

    @productAdapter = new AsyncTestStorageAdapter @Product
    @productAdapter.storage = 'products1': {name: "One", id: 1, store_id: 1}
    @Product.persist @productAdapter

    @Product.belongsTo 'store', @Store


    @storeAdapter = new AsyncTestStorageAdapter @Store
    @storeAdapter.storage =
      'stores1': {name: "Store One", id: 1}
    @Store.persist @storeAdapter

    class @Product extends Batman.Model
