mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Instead of just a string name, Pager.pagination_enabled? now accepts a page
This commit is contained in:
@@ -23,7 +23,7 @@ class TestPager < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
should "report that pagination is disabled" do
|
||||
assert !Pager.pagination_enabled?(@config, 'index.html')
|
||||
assert !Pager.pagination_enabled?(@config, OpenStruct.new(name: 'index.html', dir: '/'))
|
||||
end
|
||||
|
||||
end
|
||||
@@ -45,7 +45,7 @@ class TestPager < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
should "report that pagination is enabled" do
|
||||
assert Pager.pagination_enabled?(@config, 'index.html')
|
||||
assert Pager.pagination_enabled?(@config, OpenStruct.new(name: 'index.html', dir: '/'))
|
||||
end
|
||||
|
||||
context "with 4 posts" do
|
||||
|
||||
Reference in New Issue
Block a user