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
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class TestPager < Test::Unit::TestCase
end end
should "report that pagination is disabled" do 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
end end
@ -45,7 +45,7 @@ class TestPager < Test::Unit::TestCase
end end
should "report that pagination is enabled" do 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 end
context "with 4 posts" do context "with 4 posts" do