Skip to content

Commit

Permalink
correct rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Aug 22, 2017
1 parent 30b8d8b commit 7b3820f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/jekyll_seo_tag/drop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,20 @@
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

Expand Down

0 comments on commit 7b3820f

Please sign in to comment.