Instead of just a string name, Pager.pagination_enabled? now accepts a page
This commit is contained in:
parent
050e982006
commit
1c146ec649
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue