correct rubocop offenses

This commit is contained in:
Ben Balter 2017-08-22 13:05:49 -04:00
parent 30b8d8bb48
commit 7b3820f956
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 5 additions and 5 deletions

View File

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