Commit dd82120cd014f8dccac1cd6c1730249955356d9e

Authored by JoenioCosta
1 parent f87e244b

ActionItem392: implement pending test display control panel link


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2027 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
test/functional/profile_controller_test.rb
... ... @@ -153,7 +153,11 @@ class ProfileControllerTest < Test::Unit::TestCase
153 153 assert_no_tag :tag => 'ul', :attributes => { :class => 'profile-info-data' }, :descendant => { :tag => 'a', :content => 'Control panel' }
154 154 end
155 155  
156   - should 'show a link to control panel if user has profile_editor permission'
  156 + should 'show a link to control panel if user has profile_editor permission' do
  157 + login_as(@profile.identifier)
  158 + get :index, :profile => @profile.identifier
  159 + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{@profile.identifier}" }, :content => 'Control panel'
  160 + end
157 161  
158 162 should 'show create community in own profile' do
159 163 login_as(@profile.identifier)
... ...