         type:
           type: 'string'
         name:
-          type: 'string'}
-
-    describe 'when against valid response', () ->
-
-      it 'should should pass all asserts', () ->
+          type: 'string'
+    }
+
+    describe 'when given valid response', () ->
+
+      it 'should pass all asserts', () ->
 
         errorStub = null
         responseStub =

        assert.isTrue contentTestCalled


    describe 'of test contains params', () ->

      test = ''
      machine = ''

        # assert.doesNotThrow
        test.assertResponse(errorStub, responseStub, bodyStub)

    describe 'when given invalid response', () ->
      describe 'when response body is null', () ->

        it 'should throw AssertionError', () ->

          errorStub = null
          responseStub =
            statusCode : 201
          bodyStub = null
          fn = _.partial test.assertResponse, errorStub, responseStub, bodyStub
          assert.throw fn, chai.AssertionError

      describe 'when response body is invalid JSON', () ->

        it 'should throw AssertionError', () ->

          errorStub = null
          responseStub =
            statusCode : 201
          bodyStub = 'Im invalid'
          fn = _.partial test.assertResponse, errorStub, responseStub, bodyStub
          assert.throw fn, chai.AssertionError

