From 955bc434d159100af8af786104ecdcd594429b9d Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Mon, 30 Sep 2019 21:25:23 +0200 Subject: [PATCH] Fixed posts model regression test no issue - The failing test was introduced with https://github.com/TryGhost/Ghost/commit/80f7e0b19e6cb002731c825bba8208dcb0dca075 - The counter was not correctly incremented --- core/test/regression/models/model_posts_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test/regression/models/model_posts_spec.js b/core/test/regression/models/model_posts_spec.js index c444e8ca94..3dcff6d897 100644 --- a/core/test/regression/models/model_posts_spec.js +++ b/core/test/regression/models/model_posts_spec.js @@ -817,7 +817,7 @@ describe('Post Model', function () { createdPost.get('html').should.equal(newPostDB.html); createdPost.has('plaintext').should.equal(true); createdPost.get('plaintext').should.match(/^testing/); - createdPost.get('slug').should.equal(newPostDB.slug + '-2'); + createdPost.get('slug').should.equal(newPostDB.slug + '-3'); (!!createdPost.get('featured')).should.equal(false); (!!createdPost.get('page')).should.equal(false);