mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
assign_parameters takes 6 arguments since https://github.com/rails/rails/commit/f6232a5
This commit is contained in:
parent
2b469cb3e6
commit
1eb1643fb1
1 changed files with 9 additions and 3 deletions
|
@ -4,7 +4,11 @@ include Kaminari::Helpers
|
|||
describe 'Kaminari::Helpers' do
|
||||
describe 'Tag' do
|
||||
describe '#page_url_for', :if => defined?(Rails) do
|
||||
before { helper.request.assign_parameters(_routes, "users", "index") }
|
||||
if ActionPack::VERSION::STRING > '5'
|
||||
before { helper.request.assign_parameters(_routes, "users", "index", {}, '', []) }
|
||||
else
|
||||
before { helper.request.assign_parameters(_routes, "users", "index") }
|
||||
end
|
||||
|
||||
context "for first page" do
|
||||
subject { Tag.new(helper).page_url_for(1) }
|
||||
|
@ -18,8 +22,10 @@ describe 'Kaminari::Helpers' do
|
|||
end
|
||||
|
||||
context "with a friendly route setting" do
|
||||
before do
|
||||
helper.request.assign_parameters(_routes, "addresses", "index", :page => 3)
|
||||
if ActionPack::VERSION::STRING > '5'
|
||||
before { helper.request.assign_parameters(_routes, "addresses", "index", {:page => 3}, '', []) }
|
||||
else
|
||||
before { helper.request.assign_parameters(_routes, "addresses", "index", :page => 3) }
|
||||
end
|
||||
|
||||
context "for first page" do
|
||||
|
|
Loading…
Reference in a new issue