Commit 2efd9dfb7cd7d7028d8651415a0d196cf4329a6e

Authored by Rodrigo Souto
1 parent 195bb241

[postgres-tests] Fixing profile controller tests

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/functional/profile_controller_test.rb
... ... @@ -308,7 +308,7 @@ class ProfileControllerTest < ActionController::TestCase
308 308  
309 309 should 'not display contact us for non-enterprises' do
310 310 @profile.boxes.first.blocks << block = ProfileInfoBlock.create!
311   - get :profile_info, :profile => @profile, :block_id => block.id
  311 + get :profile_info, :profile => @profile.identifier, :block_id => block.id
312 312 assert_no_match /\/contact\/#{@profile.identifier}\/new/, @response.body
313 313 end
314 314  
... ... @@ -992,7 +992,7 @@ class ProfileControllerTest &lt; ActionController::TestCase
992 992  
993 993 should 'the activities be paginated in people profiles' do
994 994 p1 = Person.first
995   - 40.times{fast_create(Scrap, :sender_id => p1.id, :created_at => Time.now)}
  995 + 40.times{fast_create(Scrap, :receiver_id => p1.id, :created_at => Time.now)}
996 996  
997 997 @controller.stubs(:logged_in?).returns(true)
998 998 user = mock()
... ...