diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 1c14bcd..fba1dec 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -153,7 +153,11 @@ class ProfileControllerTest < Test::Unit::TestCase assert_no_tag :tag => 'ul', :attributes => { :class => 'profile-info-data' }, :descendant => { :tag => 'a', :content => 'Control panel' } end - should 'show a link to control panel if user has profile_editor permission' + should 'show a link to control panel if user has profile_editor permission' do + login_as(@profile.identifier) + get :index, :profile => @profile.identifier + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{@profile.identifier}" }, :content => 'Control panel' + end should 'show create community in own profile' do login_as(@profile.identifier) -- libgit2 0.21.2