From 245abc60320ff5d2127a0b17bf21cf87a4f45504 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Thu, 25 May 2017 09:34:18 -0400 Subject: [PATCH] update canoncial URL expectation --- spec/jekyll_seo_tag/drop_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/jekyll_seo_tag/drop_spec.rb b/spec/jekyll_seo_tag/drop_spec.rb index 1ba7665..6c4d15d 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -626,21 +626,21 @@ RSpec.describe Jekyll::SeoTag::Drop do end context "canonical url" do - let(:config) { { :url => "http://example.com" } } - + let(:config) { { :url => "http://example.com" } } + context "when canonical url is specified for a page" do let(:canonical_url) { "https://github.com/jekyll/jekyll-seo-tag/" } let(:page_meta) { { "title" => "page title", "canonical_url" => canonical_url } } - + it "uses specified canonical url" do expect(subject.canonical_url).to eq(canonical_url) end end context "when canonical url is not specified for a page" do - + it "uses site specific canonical url" do - expect(subject.canonical_url).to eq("http://example.com/page-title.html") + expect(subject.canonical_url).to eq("http://example.com/page.html") end end end