Oops, that wasn't as backwards compatible as I thought.

This commit is contained in:
Todd Eichel 2016-05-27 15:04:56 -07:00
parent 7fefcdef3f
commit c58f44d9a3
No known key found for this signature in database
GPG Key ID: F9BFFDFEC16FD5E9
2 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ EOS
end
context 'with pagination' do
let(:context) { make_context(environments: { 'paginator' => paginator }) }
let(:context) { make_context({}, { 'paginator' => paginator }) }
it 'outputs pagination links' do
expect(output).to match(%r{<link rel="prev" href="foo">})

View File

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