diff --git a/spec/helpers/action_view_extension_spec.rb b/spec/helpers/action_view_extension_spec.rb index b44f21a..5efcb65 100644 --- a/spec/helpers/action_view_extension_spec.rb +++ b/spec/helpers/action_view_extension_spec.rb @@ -32,13 +32,13 @@ describe 'Kaminari::ActionViewExtension', :if => defined?(Rails) do specify '#total_pages' do @users = User.page(1).per(1) - result = helper.paginate @users, total_pages: 3, :params => {:controller => 'users', :action => 'index'} + result = helper.paginate @users, :total_pages => 3, :params => {:controller => 'users', :action => 'index'} expect(result.scan('').count).to eq(2) end specify '#total_pages legacy' do @users = User.page(1).per(1) - result = helper.paginate @users, num_pages: 3, :params => {:controller => 'users', :action => 'index'} + result = helper.paginate @users, :num_pages => 3, :params => {:controller => 'users', :action => 'index'} expect(result.scan('').count).to eq(2) end