Instead of just a string name, Pager.pagination_enabled? now accepts a page

This commit is contained in:
Parker Moore
2013-05-05 17:26:48 +02:00
parent 050e982006
commit 1c146ec649

View File

@@ -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