Merge pull request #43 from pathawks/pr/jekyll3

Update tests to work with Liquid 3
This commit is contained in:
Ben Balter 2016-02-03 12:30:16 -05:00
commit 31dc2491c5
2 changed files with 5 additions and 3 deletions

View File

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

View File

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