0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #3840 from jaswilli/pg-import-test

Change tests to accommodate pg differences.
This commit is contained in:
Hannah Wolfe 2014-08-21 20:11:36 +01:00
commit 98c89b4858

View file

@ -606,19 +606,8 @@ describe('Import', function () {
}).then(function () {
done(new Error('Allowed import of duplicate data'));
}).catch(function (response) {
response.length.should.equal(3);
response.length.should.be.above(0);
response[0].type.should.equal('DataImportError');
response[0].message.should.eql(
'Duplicate entry found. Multiple values of "tagging-things" found for tags.slug.'
);
response[1].type.should.equal('DataImportError');
response[1].message.should.eql(
'Duplicate entry found. Multiple values of "tagging-things" found for tags.slug.'
);
response[2].type.should.equal('DataImportError');
response[2].message.should.eql(
'Duplicate entry found. Multiple values of "test-ghost-post" found for posts.slug.'
);
done();
}).catch(done);
});