diff --git a/ghost/core/core/frontend/helpers/tpl/content-cta.hbs b/ghost/core/core/frontend/helpers/tpl/content-cta.hbs index e03c10cb8a0..643c11e9a5d 100644 --- a/ghost/core/core/frontend/helpers/tpl/content-cta.hbs +++ b/ghost/core/core/frontend/helpers/tpl/content-cta.hbs @@ -11,7 +11,7 @@
Already have an account? Sign in
diff --git a/ghost/core/test/unit/frontend/helpers/content.test.js b/ghost/core/test/unit/frontend/helpers/content.test.js index 53d63558f86..c5bcdf514f2 100644 --- a/ghost/core/test/unit/frontend/helpers/content.test.js +++ b/ghost/core/test/unit/frontend/helpers/content.test.js @@ -150,6 +150,18 @@ describe('{{content}} helper with no access', function () { rendered.string.should.containEql('"background-color: #abcdef"'); rendered.string.should.containEql('This page is for'); }); + + it('can render default template for upgrade case', function () { + // html will be included when there is free content available + const html = 'Free content'; + optionsData.data.member = { + id: '123' + }; + const rendered = content.call({html: html, access: false, visibility: 'members'}, optionsData); + rendered.string.should.containEql('Free content'); + rendered.string.should.containEql('Upgrade your account'); + rendered.string.should.containEql('color:#abcdef'); + }); }); describe('{{content}} helper with custom template', function () {