add test for Jekyll version

This commit is contained in:
Frank Taillandier 2017-09-06 00:25:14 +02:00
parent cc092dd95d
commit 5219054a76
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,11 @@ RSpec.describe Jekyll::SeoTag do
expect(output).to match(%r!Jekyll SEO tag v#{version}!i)
end
it "outputs jekyll version" do
jekyll_version = Jekyll::VERSION
expect(output).to match(%r!Jekyll v#{jekyll_version}!i)
end
it "outputs valid HTML" do
site.process
options = {
@ -296,6 +301,7 @@ RSpec.describe Jekyll::SeoTag do
expected = <<-EOS
<!-- Begin Jekyll SEO tag v#{version} -->
<title>Foo</title>
<meta name="generator" content="Jekyll v3.5.2" />
<meta property="og:title" content="Foo" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="http://example.invalid/page.html" />