From b0c04c89f44a92161becf86f9614ce074b3811b1 Mon Sep 17 00:00:00 2001 From: Christopher Giroir Date: Wed, 8 May 2013 14:08:03 -0700 Subject: [PATCH] Further clarify what paginate_path should do in the case of directories in the path --- test/test_pager.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_pager.rb b/test/test_pager.rb index 608a78d1..990d28eb 100644 --- a/test/test_pager.rb +++ b/test/test_pager.rb @@ -14,6 +14,8 @@ class TestPager < Test::Unit::TestCase should "determine the pagination path" do assert_nil(Pager.paginate_path(Jekyll::Configuration::DEFAULTS, 1)) assert_equal("page2", Pager.paginate_path(Jekyll::Configuration::DEFAULTS, 2)) + assert_nil(Pager.paginate_path(Jekyll::Configuration::DEFAULTS.merge('paginate_path' => '/blog/page-:num'), 1)) + assert_equal("page-2", Pager.paginate_path(Jekyll::Configuration::DEFAULTS.merge('paginate_path' => '/blog/page-:num'), 2)) end context "pagination disabled" do