From e94cc24c2af748673d9fedd6a8f3f13bddaccf2a Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 18 May 2012 07:00:31 +0900 Subject: [PATCH] always create User with a name --- spec/helpers/action_view_extension_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/helpers/action_view_extension_spec.rb b/spec/helpers/action_view_extension_spec.rb index 159c447..8a142f6 100644 --- a/spec/helpers/action_view_extension_spec.rb +++ b/spec/helpers/action_view_extension_spec.rb @@ -82,7 +82,7 @@ describe 'Kaminari::ActionViewExtension' do context 'having 1 entry' do before do - User.create! + User.create! :name => 'user1' @users = User.page(1).per(25) end subject { helper.page_entries_info @users, :params => {:controller => 'users', :action => 'index'} } @@ -96,7 +96,7 @@ describe 'Kaminari::ActionViewExtension' do context 'having more than 1 but less than a page of entries' do before do - 10.times {|i| User.create!} + 10.times {|i| User.create! :name => "user#{i}"} @users = User.page(1).per(25) end subject { helper.page_entries_info @users, :params => {:controller => 'users', :action => 'index'} } @@ -110,7 +110,7 @@ describe 'Kaminari::ActionViewExtension' do context 'having more than one page of entries' do before do - 50.times {|i| User.create!} + 50.times {|i| User.create! :name => "user#{i}"} end describe 'the first page' do