var should = require('should'),
    request = require('supertest'),
    app = require('../app'),
    mongoose = require('mongoose'),
    Book = mongoose.model('Book'),
    agent = request.agent(app);

describe('Book Crud Test', function () {
    it('should allow a book to be posted and return a read and _id', function (done) {
        var bookPost = {title: 'new book', author: 'saran', genre: 'Horror'};

        agent.post('/api/books')
            .send(bookPost)
            .expect(200)
            .end(function (err, results) {
                results.body.read.should.equal(false);
                results.body.should.have.property('_id');
                done()
            })
    });

    afterEach(function (done) {
        Book.remove().exec();
        done();
    })
});
@@ -231,24 +231,100 @@
 nction () %7B%0A
+%0A    after(function (done) %7B%0A        Book.remove();%0A        done();%0A    %7D)%0A%0A
     it('shou
@@ -770,92 +770,7 @@
 );%0A%0A
-    afterEach(function (done) %7B%0A        Book.remove().exec();%0A        done();%0A    %7D)%0A
 %7D);

change integration-test