Commit 2537fc300fb44df8bfcbf4e4bc445b06a1286e64

Authored by Daniela Feitosa
1 parent c3e49384

Fixed tests

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
test/functional/profile_controller_test.rb
... ... @@ -1566,7 +1566,7 @@ class ProfileControllerTest < ActionController::TestCase
1566 1566 community.add_admin(user)
1567 1567  
1568 1568 Environment.any_instance.stubs(:enabled?).returns(false)
1569   - Environment.any_instance.stubs(:enabled?).with('display_my_communities_on_user_menu').returns(true)
  1569 + Environment.any_instance.stubs(:enabled?).with(:display_my_communities_on_user_menu).returns(true)
1570 1570  
1571 1571 login_as(user.identifier)
1572 1572 get :index
... ... @@ -1579,7 +1579,7 @@ class ProfileControllerTest < ActionController::TestCase
1579 1579 u2 = create_user('guy_that_will_be_admin_of_all').person # because the first member of each community is an admin
1580 1580  
1581 1581 Environment.any_instance.stubs(:enabled?).returns(false)
1582   - Environment.any_instance.stubs(:enabled?).with('display_my_communities_on_user_menu').returns(true)
  1582 + Environment.any_instance.stubs(:enabled?).with(:display_my_communities_on_user_menu).returns(true)
1583 1583  
1584 1584 Environment.any_instance.stubs(:required_person_fields).returns([])
1585 1585 u.data = { :email => 'test@test.com', :fields_privacy => { } }
... ... @@ -1617,7 +1617,7 @@ class ProfileControllerTest < ActionController::TestCase
1617 1617 u = create_user('other_other_ze').person
1618 1618  
1619 1619 Environment.any_instance.stubs(:enabled?).returns(false)
1620   - Environment.any_instance.stubs(:enabled?).with('display_my_enterprises_on_user_menu').returns(true)
  1620 + Environment.any_instance.stubs(:enabled?).with(:display_my_enterprises_on_user_menu).returns(true)
1621 1621  
1622 1622 Environment.any_instance.stubs(:required_person_fields).returns([])
1623 1623 u.data = { :email => 'test@test.com', :fields_privacy => { } }
... ... @@ -1645,7 +1645,7 @@ class ProfileControllerTest < ActionController::TestCase
1645 1645 enterprise.add_admin(user)
1646 1646  
1647 1647 Environment.any_instance.stubs(:enabled?).returns(false)
1648   - Environment.any_instance.stubs(:enabled?).with('display_my_enterprises_on_user_menu').returns(false)
  1648 + Environment.any_instance.stubs(:enabled?).with(:display_my_enterprises_on_user_menu).returns(false)
1649 1649  
1650 1650 login_as(user.identifier)
1651 1651 get :index
... ...