Fix travis-ci errors

This commit is contained in:
Carlos Garcés 2016-01-30 22:50:19 +01:00
parent 56c7f4e238
commit eac9501a2d
1 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ describe Jekyll::SeoTag do
it "uses the site url to build the seo url" do
site = site({"url" => "http://example.invalid"})
context = context({ :site => site })
expected = /<link rel="canonical" href="http:\/\/example.invalid\/page.html" itemprop="url" \/>/
expected = /<link rel="canonical" href="http:\/\/example.invalid\/page.html" \/>/
expect(subject.render(context)).to match(expected)
expected = /<meta property='og:url' content='http:\/\/example.invalid\/page.html' \/>/
expect(subject.render(context)).to match(expected)
@ -65,7 +65,7 @@ describe Jekyll::SeoTag do
it "uses site.github.url to build the seo url" do
site = site({"github" => { "url" => "http://example.invalid" }} )
context = context({ :site => site })
expected = /<link rel="canonical" href="http:\/\/example.invalid\/page.html" itemprop="url" \/>/
expected = /<link rel="canonical" href="http:\/\/example.invalid\/page.html" \/>/
expect(subject.render(context)).to match(expected)
expected = /<meta property='og:url' content='http:\/\/example.invalid\/page.html' \/>/
expect(subject.render(context)).to match(expected)
@ -75,7 +75,7 @@ describe Jekyll::SeoTag do
page = page({ "permalink" => "/page/index.html" })
site = site({ "url" => "http://example.invalid" })
context = context({ :page => page, :site => site })
expected = %r!<link rel="canonical" href="http://example.invalid/page/" itemprop="url" />!
expected = %r!<link rel="canonical" href="http://example.invalid/page/" />!
expected = %r!<meta property='og:url' content='http://example.invalid/page/' />!
expect(subject.render(context)).to match(expected)
end
@ -83,7 +83,7 @@ describe Jekyll::SeoTag do
it "uses baseurl to build the seo url" do
site = site({ "url" => "http://example.invalid", "baseurl" => "/foo" })
context = context({ :site => site })
expected = %r!<link rel="canonical" href="http://example.invalid/foo/page.html" itemprop="url" />!
expected = %r!<link rel="canonical" href="http://example.invalid/foo/page.html" />!
expect(subject.render(context)).to match(expected)
expected = %r!<meta property='og:url' content='http://example.invalid/foo/page.html' />!
expect(subject.render(context)).to match(expected)