From 2537fc300fb44df8bfcbf4e4bc445b06a1286e64 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 21 Nov 2013 14:54:54 +0000 Subject: [PATCH] Fixed tests --- test/functional/profile_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 0acdbf1..b7aa274 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -1566,7 +1566,7 @@ class ProfileControllerTest < ActionController::TestCase community.add_admin(user) Environment.any_instance.stubs(:enabled?).returns(false) - Environment.any_instance.stubs(:enabled?).with('display_my_communities_on_user_menu').returns(true) + Environment.any_instance.stubs(:enabled?).with(:display_my_communities_on_user_menu).returns(true) login_as(user.identifier) get :index @@ -1579,7 +1579,7 @@ class ProfileControllerTest < ActionController::TestCase u2 = create_user('guy_that_will_be_admin_of_all').person # because the first member of each community is an admin Environment.any_instance.stubs(:enabled?).returns(false) - Environment.any_instance.stubs(:enabled?).with('display_my_communities_on_user_menu').returns(true) + Environment.any_instance.stubs(:enabled?).with(:display_my_communities_on_user_menu).returns(true) Environment.any_instance.stubs(:required_person_fields).returns([]) u.data = { :email => 'test@test.com', :fields_privacy => { } } @@ -1617,7 +1617,7 @@ class ProfileControllerTest < ActionController::TestCase u = create_user('other_other_ze').person Environment.any_instance.stubs(:enabled?).returns(false) - Environment.any_instance.stubs(:enabled?).with('display_my_enterprises_on_user_menu').returns(true) + Environment.any_instance.stubs(:enabled?).with(:display_my_enterprises_on_user_menu).returns(true) Environment.any_instance.stubs(:required_person_fields).returns([]) u.data = { :email => 'test@test.com', :fields_privacy => { } } @@ -1645,7 +1645,7 @@ class ProfileControllerTest < ActionController::TestCase enterprise.add_admin(user) Environment.any_instance.stubs(:enabled?).returns(false) - Environment.any_instance.stubs(:enabled?).with('display_my_enterprises_on_user_menu').returns(false) + Environment.any_instance.stubs(:enabled?).with(:display_my_enterprises_on_user_menu).returns(false) login_as(user.identifier) get :index -- libgit2 0.21.2