From dd82120cd014f8dccac1cd6c1730249955356d9e Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 13 Jun 2008 21:48:01 +0000 Subject: [PATCH] ActionItem392: implement pending test display control panel link --- test/functional/profile_controller_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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