mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
commit
7d244ea646
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ if defined?(::Rails::Railtie) && defined?(ActionView)
|
||||||
assert_equal '/users', Kaminari::Helpers::Tag.new(self).page_url_for(1)
|
assert_equal '/users', Kaminari::Helpers::Tag.new(self).page_url_for(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'config.params_on_first_page == false' do
|
test 'config.params_on_first_page == true' do
|
||||||
begin
|
begin
|
||||||
Kaminari.config.params_on_first_page = true
|
Kaminari.config.params_on_first_page = true
|
||||||
assert_equal '/users?page=1', Kaminari::Helpers::Tag.new(self).page_url_for(1)
|
assert_equal '/users?page=1', Kaminari::Helpers::Tag.new(self).page_url_for(1)
|
||||||
|
@ -37,7 +37,7 @@ if defined?(::Rails::Railtie) && defined?(ActionView)
|
||||||
assert_equal('/addresses', Kaminari::Helpers::Tag.new(self).page_url_for(1))
|
assert_equal('/addresses', Kaminari::Helpers::Tag.new(self).page_url_for(1))
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'config.params_on_first_page == false' do
|
test 'config.params_on_first_page == true' do
|
||||||
begin
|
begin
|
||||||
Kaminari.config.params_on_first_page = true
|
Kaminari.config.params_on_first_page = true
|
||||||
assert_equal('/addresses/page/1', Kaminari::Helpers::Tag.new(self).page_url_for(1))
|
assert_equal('/addresses/page/1', Kaminari::Helpers::Tag.new(self).page_url_for(1))
|
||||||
|
|
Loading…
Reference in a new issue