       equal product._batman.attributes['store'], undefined
       QUnit.start()
 
-asyncTest "Models can save while related records are loading", 1, ->
+asyncTest "hasOne models can save while related records are loading", 1, ->
   @App.Store.find 1, (err, store) ->
     product = store.get 'product'
     product._batman.state = 'loading'
     store.save (err, savedStore) ->
       ok !err
-      QUnit.start()
-
-asyncTest "belongsTo associations render", 1, ->
-  @App.Product.find 1, (err, product) ->
-    source = '<span data-bind="product.store.name"></span>'
-    context = Batman(product: product)
-    helpers.render source, context, (node) =>
-      equal node[0].innerHTML, 'Store One'
       QUnit.start()
 
 asyncTest "hasOne associations render", 1, ->

  store.save (err, record) =>
    equal storeSaveSpy.callCount, 1
    equal product.get('store_id'), record.id
    storedJSON = @storeAdapter.storage["stores#{record.id}"]
    deepEqual storedJSON, store.toJSON()

    productJSON = store.get('product').toJSON()
    delete productJSON.store
    deepEqual storedJSON.product, productJSON
    QUnit.start()

asyncTest "hasOne associations can be destroyed safely", 2, ->

{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 "belongsTo Associations"
  setup: ->
    class @App extends Batman.App
    # Batman.currentApp exists under node and causes the adapters to explode
    Batman.currentApp = undefined

    class @App.Store extends Batman.Model
      @encode 'id', 'name'
    @storeAdapter = new AsyncTestStorageAdapter @App.Store
    @storeAdapter.storage =
      'stores1': {name: "Store One", id: 1}
