         auth.createUser (err, user) ->
           user
             .delete "/#{config.apiSegment}/users/#{sampleUser.id}"
-            .send
-              name: 'Dave Kaneda'
             .expect 401
             .end done
 

            email: 'dave@buckets.io'
            password: 'password2014'
          .expect 200
          .end done

  describe 'GET/PUT/DELETE', ->

              expect(respUser.id).to.exist
              expect(respUser.name).equal('Dave Kaneda')
              done()
      # TODO investigate why it's not failing
      # it 'returns a 400 if payload is not json', (done) ->
      #   auth.createAdmin (err, admin) ->
      #     admin
      #       .put "/#{config.apiSegment}/users/#{sampleUser.id}"
      #       .send 'Invalid JSON payload'
      #       .expect 400
      #       .end done

    describe 'DELETE /users/:id', ->

      it 'returns a 401 if user isn’t authenticated', (done) ->
        request app
          .delete "/#{config.apiSegment}/users/#{sampleUser.id}"
          .expect 401
          .end done

