From 2efd9dfb7cd7d7028d8651415a0d196cf4329a6e Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 20 Aug 2013 19:39:01 -0300 Subject: [PATCH] [postgres-tests] Fixing profile controller tests --- test/functional/profile_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 3e31b06..79edb3f 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -308,7 +308,7 @@ class ProfileControllerTest < ActionController::TestCase should 'not display contact us for non-enterprises' do @profile.boxes.first.blocks << block = ProfileInfoBlock.create! - get :profile_info, :profile => @profile, :block_id => block.id + get :profile_info, :profile => @profile.identifier, :block_id => block.id assert_no_match /\/contact\/#{@profile.identifier}\/new/, @response.body end @@ -992,7 +992,7 @@ class ProfileControllerTest < ActionController::TestCase should 'the activities be paginated in people profiles' do p1 = Person.first - 40.times{fast_create(Scrap, :sender_id => p1.id, :created_at => Time.now)} + 40.times{fast_create(Scrap, :receiver_id => p1.id, :created_at => Time.now)} @controller.stubs(:logged_in?).returns(true) user = mock() -- libgit2 0.21.2