Further clarify what paginate_path should do in the case of directories in the path

This commit is contained in:
Christopher Giroir 2013-05-08 14:08:03 -07:00
parent 09fafd6418
commit b0c04c89f4
1 changed files with 2 additions and 0 deletions

View File

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