 Responses =
   general:
     status: 200
-    responseText: '{"id": 1, "submodel_id": 1}'
+    responseText: '{"id": 1, "author_id": 1}'
   generalMulti:
     status: 200
     responseText: '[{"id": 1}]'
 
-co = new Connector('/')
+co = new RESTConnector('/')
 
-Model = Modelize
-  api: 'tests'
+Post = Modelize
+  api: 'posts'
   connector: co
   has_one:
-    submodel:
-      model: 'SubModel'
+    author:
+      model: 'Author'
   has_many:
-    multisubmodel:
-      model: 'MultiSubModel'
+    comment:
+      model: 'Comment'
   editable: [ 'fieldOne', 'fieldTwo' ]
 
-SubModel = Modelize
-  api: 'subtests'
+# Single Submodel
+Author = Modelize
+  api: 'authors'
   connector: co
 
-MultiSubModel = Modelize
-  api: 'multisubtests'
+# Multi Submodel
+Comment = Modelize
+  api: 'comments'
   connector: co
   belongs_to:
-    tests:
-      model: 'Model'
+    posts:
+      model: 'Post'
 
 describe 'Public Model API', ->
   beforeAll ->
     jasmine.Ajax.install()
 
-    @instance = new Model()
+    @instance = new Post()
 
   it 'is a function', ->
-    expect(typeof Model).toBe 'function'
+    expect(typeof Post).toBe 'function'
 
   it 'gets and calls a function', ->
-    Model.get {}, (data) ->
+    Post.get {}, (data) ->
       expect(typeof data).toBe 'object'
       expect(data.id).toBe 1
 
     request = jasmine.Ajax.requests.mostRecent()
 
-    expect(request.url).toBe '/tests'
+    expect(request.url).toBe '/posts'
     expect(request.method).toBe 'GET'
     expect(request.data()).toEqual {}
 


  describe 'Instance functions', ->
    beforeAll ->
      Model.get_one 1, (data) =>
        @instance = new Model(data)

      request = jasmine.Ajax.requests.mostRecent()
      request.respondWith Responses.general

    expect(@test.push).toHaveBeenCalledWith jasmine.objectContaining({ id: 1 })

  it 'creates and calls a function', ->
    Post.create {}, (data) ->
      expect(typeof data).toBe 'object'
      expect(data.id).toBe 1

    request = jasmine.Ajax.requests.mostRecent()

    expect(request.url).toBe '/posts'
    expect(request.method).toBe 'POST'
    expect(request.data()).toEqual {}

