correct rubocop offenses
This commit is contained in:
parent
30b8d8bb48
commit
7b3820f956
|
@ -232,20 +232,20 @@ RSpec.describe Jekyll::SeoTag::Drop do
|
|||
end
|
||||
|
||||
context "with site.authors as an array" do
|
||||
let("data") { { "authors" => ["foo", "bar"] } }
|
||||
let(:page_meta) { {"author" => "foo"} }
|
||||
let("data") { { "authors" => %w(foo bar) } }
|
||||
let(:page_meta) { { "author" => "foo" } }
|
||||
|
||||
it "doesn't error" do
|
||||
expect(subject.author).to eql({"name"=>"foo", "twitter"=>"foo"})
|
||||
expect(subject.author).to eql({ "name" => "foo", "twitter" => "foo" })
|
||||
end
|
||||
end
|
||||
|
||||
context "with site.authors[author] as string" do
|
||||
let("data") { { "authors" => { "foo" => "bar" } } }
|
||||
let(:page_meta) { {"author" => "foo"} }
|
||||
let(:page_meta) { { "author" => "foo" } }
|
||||
|
||||
it "doesn't error" do
|
||||
expect(subject.author).to eql({"name"=>"foo", "twitter"=>"foo"})
|
||||
expect(subject.author).to eql({ "name" => "foo", "twitter" => "foo" })
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue