From 72de98db0c317f66259ef6318a195b3ebeb25118 Mon Sep 17 00:00:00 2001 From: Kleber Shimabuku Date: Wed, 24 Sep 2014 11:47:27 -0300 Subject: [PATCH] Using old ruby hash syntax --- spec/helpers/action_view_extension_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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