Fix test - props @Parkr

This commit is contained in:
Frank Taillandier 2017-09-06 02:00:09 +02:00
parent f9cabae8a6
commit a6e78cb7dd
No known key found for this signature in database
GPG Key ID: E73258E3F50AEB7E
1 changed files with 3 additions and 4 deletions

View File

@ -23,9 +23,8 @@ 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)
it "outputs meta generator" do
expect(output).to match(%r!Jekyll v#{Jekyll::VERSION}!i)
end
it "outputs valid HTML" do
@ -301,7 +300,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 name="generator" content="Jekyll v#{Jekyll::VERSION}" />
<meta property="og:title" content="Foo" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="http://example.invalid/page.html" />