Allow passing custom environments when making Liquid contexts for testing. Backwards-compatible with previous implementation.

This commit is contained in:
Todd Eichel 2016-05-27 14:59:39 -07:00
parent b55105813a
commit edd65c3f14
No known key found for this signature in database
GPG Key ID: F9BFFDFEC16FD5E9
1 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,6 @@ def make_site(options = {})
Jekyll::Site.new(config)
end
def make_context(registers = {})
Liquid::Context.new({}, {}, { site: site, page: page }.merge(registers))
def make_context(registers = {}, environments: {})
Liquid::Context.new(environments, {}, { site: site, page: page }.merge(registers))
end