Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to work with Liquid 3 #43

Merged
merged 2 commits into from
Feb 3, 2016
Merged

Update tests to work with Liquid 3 #43

merged 2 commits into from
Feb 3, 2016

Conversation

pathawks
Copy link
Member

@pathawks pathawks commented Feb 3, 2016

Fixes #42

@pathawks pathawks added the bug label Feb 3, 2016
@pathawks
Copy link
Member Author

pathawks commented Feb 3, 2016

Jekyll::Post Does not exist in Jekyll 3

@@ -26,8 +26,11 @@ def page(options={})
end

def post(options={})
page = Jekyll::Post.new site, CONFIG_DEFAULTS["source"], "", "2015-01-01-post.md"
page.data = options
site = site()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to use site twice in config and wanted to avoid creating two objects. Does this make sense? Is this ok?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't even matter, I suppose. context creates two site objects indirectly.

@benbalter
Copy link
Collaborator

Ahh. Nice work. Thanks @pathawks!

benbalter added a commit that referenced this pull request Feb 3, 2016
Update tests to work with Liquid 3
@benbalter benbalter merged commit 31dc249 into jekyll:master Feb 3, 2016
@pathawks pathawks deleted the pr/jekyll3 branch February 3, 2016 17:43
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants