Skip to content

Commit

Permalink
Altered integration test to cover dashes in slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Niccoli authored and danielniccoli committed Jan 28, 2014
1 parent 199a92d commit d092b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/test/integration/model/model_posts_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d092b4e

Please sign in to comment.