From 6009b495ea6523ef6fe12cfb2dda8ea2044e47f8 Mon Sep 17 00:00:00 2001 From: Kyle Niewiada Date: Mon, 3 Apr 2017 15:13:43 -0400 Subject: [PATCH] Separate tests. --- spec/jekyll_seo_tag_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index 115b18d..d504617 100755 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -237,11 +237,15 @@ describe Jekyll::SeoTag do end context "with absolute site.logo" do - let(:site) { make_site("logo" => "http://cdn.example.invalid/logo.png", "url" => "http://example.invalid", "author" => "Mr. Foo") } + let(:site) { make_site("logo" => "http://cdn.example.invalid/logo.png", "url" => "http://example.invalid") } it "outputs the logo" do expect(json_data["publisher"]["logo"]["url"]).to eql("http://cdn.example.invalid/logo.png") end + end + + context "with site.logo and page.author" do + let(:site) { make_site("logo" => "http://cdn.example.invalid/logo.png", "url" => "http://example.invalid", "author" => "Mr. Foo") } it "outputs the author" do expect(json_data["publisher"]["name"]).to eql("Mr. Foo")