From 6d2f5aee1b862c8f178fec89b709aa6785987169 Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Tue, 2 Feb 2016 19:06:10 -0800 Subject: [PATCH 1/2] Update tests to work with Liquid 3 --- spec/jekyll_seo_tag_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index f2fafd2..d14e4dd 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe Jekyll::SeoTag do - subject { Jekyll::SeoTag.new("seo", nil, nil) } + subject { Jekyll::SeoTag.parse("seo", nil, nil, nil) } before do Jekyll.logger.log_level = :error From a42df44513b15a4d90b0c48afe5c8bddbac30cd2 Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Tue, 2 Feb 2016 20:02:08 -0800 Subject: [PATCH 2/2] Update tests to work with Jekyll 3 --- spec/spec_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c6c2a77..a391dd0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -26,8 +26,10 @@ def page(options={}) end def post(options={}) - page = Jekyll::Post.new site, CONFIG_DEFAULTS["source"], "", "2015-01-01-post.md" - page.data = options + filename = File.expand_path("2015-01-01-post.md", CONFIG_DEFAULTS["source"]) + config = { :site => site, :collection => site.collections["posts"] } + page = Jekyll::Document.new filename, config + page.merge_data!(options) page end