features/cli.feature in jekyll-shorts-0.0.4 vs features/cli.feature in jekyll-shorts-0.0.5

- old
+ new

@@ -23,5 +23,42 @@ Hello, world! """ Then I build Jekyll site And Exit code is zero And File "_site/230729.html" exists + And I build Jekyll site + And Exit code is zero + + Scenario: Simple site + Given I have a "_config.yml" file with content: + """ + markdown: kramdown + plugins: + - jekyll-shorts + shorts: + permalink: :y.html + """ + And I have a "_layouts/default.html" file with content: + """ + {{ content }} + """ + And I have a "_posts/2023-01-01-hello.md" file with content: + """ + --- + title: Hello, world! + layout: default + --- + Hello, world! + """ + Then I build Jekyll site + And Exit code is zero + And File "_site/23.html" exists + And I have a "_posts/2023-02-02-hello.md" file with content: + """ + --- + title: Hello, world! + layout: default + --- + Hello, world! + """ + And I build Jekyll site + And Exit code is not zero