From 1c146ec649aebb55ce8c2259fc8b00a8426e3d63 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 5 May 2013 17:26:48 +0200 Subject: [PATCH] Instead of just a string name, Pager.pagination_enabled? now accepts a page --- test/test_pager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_pager.rb b/test/test_pager.rb index fe1156ca..afdf4a2b 100644 --- a/test/test_pager.rb +++ b/test/test_pager.rb @@ -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