From 82450da5746578f6db66efb5f10084059b9b16a4 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 16 May 2008 20:16:13 +0000 Subject: [PATCH] ActionItem355: remove table with personal info --- app/views/profile_editor/index.rhtml | 2 -- test/functional/profile_editor_controller_test.rb | 10 +++++----- test/integration/editing_person_info_test.rb | 4 +--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml index 058cb1c..9ad9d63 100644 --- a/app/views/profile_editor/index.rhtml +++ b/app/views/profile_editor/index.rhtml @@ -4,8 +4,6 @@ <%= render :partial => 'pending_tasks' %> -<%= display_profile_info(profile) %> - <% file_manager do %> <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> diff --git a/test/functional/profile_editor_controller_test.rb b/test/functional/profile_editor_controller_test.rb index edb114b..7a5209c 100644 --- a/test/functional/profile_editor_controller_test.rb +++ b/test/functional/profile_editor_controller_test.rb @@ -33,10 +33,6 @@ class ProfileEditorControllerTest < Test::Unit::TestCase assert_template 'index' assert_response :success assert_not_nil assigns(:profile) - - assert_tag :tag => 'td', :content => 'a test profile' - assert_tag :tag => 'td', :content => 'my address' - assert_tag :tag => 'td', :content => 'my contact information' end def test_should_present_pending_tasks_in_index @@ -207,7 +203,11 @@ class ProfileEditorControllerTest < Test::Unit::TestCase assert_equal false, Profile['ze'].public_profile end - should 'show error messages for' + should 'show error messages for invalid foundation_year' do + org = Organization.create!(:name => 'test org', :identifier => 'testorg') + post :edit, :profile => 'testorg', :profile_data => { :foundation_year => 'aaa' } + assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' } + end should 'edit enterprise' do ent = Enterprise.create!(:name => 'test org', :identifier => 'testent') diff --git a/test/integration/editing_person_info_test.rb b/test/integration/editing_person_info_test.rb index 96fba9e..1e7de3c 100644 --- a/test/integration/editing_person_info_test.rb +++ b/test/integration/editing_person_info_test.rb @@ -13,9 +13,7 @@ class EditingPersonInfoTest < ActionController::IntegrationTest get '/myprofile/ze' assert_response :success - assert_tag :tag => 'td', :content => profile.name - assert_tag :tag => 'td', :content => profile.address - assert_tag :tag => 'td', :content => profile.contact_information + assert_tag :tag => 'a', :content => 'Edit Profile' get '/myprofile/ze/profile_editor/edit' assert_response :success -- libgit2 0.21.2