Altered integration test to cover dashes in slug

This commit is contained in:
Daniel Niccoli 2014-01-27 17:08:20 +01:00 committed by Daniel Niccoli
parent 199a92d9cb
commit d092b4ecd2

View File

@ -243,13 +243,13 @@ describe('Post Model', function () {
it('can generate slugs without duplicate hyphens', function (done) {
var newPost = {
title: 'apprehensive titles have too many spaces ',
title: 'apprehensive titles have too many spaces—and m-dashes — and also n-dashes ',
markdown: 'Test Content 1'
};
PostModel.add(newPost).then(function (createdPost) {
createdPost.get('slug').should.equal('apprehensive-titles-have-too-many-spaces');
createdPost.get('slug').should.equal('apprehensive-titles-have-too-many-spaces-and-m-dashes-and-also-n-dashes');
done();
}).then(null, done);