Skip to content

Commit

Permalink
add test for front matter defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Apr 13, 2017
1 parent f048342 commit 812eb22
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/jekyll_seo_tag/drop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,23 @@
end
end

context "with author as a front matter default" do
let(:config) do
{
"defaults" => [
{
"scope" => { "path" => "" },
"values" => { "author" => "front matter default" },
},
],
}
end

it "uses the author from the front matter default" do
expect(subject.author["name"]).to eql("front matter default")
end
end

context "twitter" do
let(:page_meta) { { "author" => "author" } }

Expand Down

0 comments on commit 812eb22

Please sign in to comment.