rubocop offenses fixed

This commit is contained in:
Parth Modi 2017-05-24 22:20:44 +05:30
parent 62956da2de
commit 1e6110ddef
1 changed files with 3 additions and 4 deletions

View File

@ -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