rubocop offenses fixed
This commit is contained in:
parent
62956da2de
commit
1e6110ddef
|
@ -627,8 +627,8 @@ RSpec.describe Jekyll::SeoTag::Drop do
|
|||
|
||||
context "canonical url" do
|
||||
context "when canonical url is specified for a page" do
|
||||
let(:page) { make_page( { "title" => "page title", "canonical_url" => "https://github.com/jekyll/jekyll-seo-tag/"} ) }
|
||||
let(:canonical_url) { 'https://github.com/jekyll/jekyll-seo-tag/' }
|
||||
let(:page) { make_page({ "title" => "page title", "canonical_url" => "https://github.com/jekyll/jekyll-seo-tag/" }) }
|
||||
let(:canonical_url) { "https://github.com/jekyll/jekyll-seo-tag/" }
|
||||
it "uses specified canonical url" do
|
||||
puts subject.canonical_url
|
||||
expect(subject.canonical_url).to eq(canonical_url)
|
||||
|
@ -636,11 +636,10 @@ RSpec.describe Jekyll::SeoTag::Drop do
|
|||
end
|
||||
|
||||
context "when canonical url is not specified for a page" do
|
||||
let(:canonical_url) { 'https://github.com/jekyll/jekyll-seo-tag/' }
|
||||
let(:canonical_url) { "https://github.com/jekyll/jekyll-seo-tag/" }
|
||||
it "uses site specific canonical url" do
|
||||
expect(subject.canonical_url).not_to eq(canonical_url)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue