Commit 82450da5746578f6db66efb5f10084059b9b16a4
1 parent
e156f71d
Exists in
master
and in
29 other branches
ActionItem355: remove table with personal info
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1814 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
6 additions
and
10 deletions
Show diff stats
app/views/profile_editor/index.rhtml
@@ -4,8 +4,6 @@ | @@ -4,8 +4,6 @@ | ||
4 | 4 | ||
5 | <%= render :partial => 'pending_tasks' %> | 5 | <%= render :partial => 'pending_tasks' %> |
6 | 6 | ||
7 | -<%= display_profile_info(profile) %> | ||
8 | - | ||
9 | <% file_manager do %> | 7 | <% file_manager do %> |
10 | 8 | ||
11 | <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> | 9 | <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> |
test/functional/profile_editor_controller_test.rb
@@ -33,10 +33,6 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | @@ -33,10 +33,6 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | ||
33 | assert_template 'index' | 33 | assert_template 'index' |
34 | assert_response :success | 34 | assert_response :success |
35 | assert_not_nil assigns(:profile) | 35 | assert_not_nil assigns(:profile) |
36 | - | ||
37 | - assert_tag :tag => 'td', :content => 'a test profile' | ||
38 | - assert_tag :tag => 'td', :content => 'my address' | ||
39 | - assert_tag :tag => 'td', :content => 'my contact information' | ||
40 | end | 36 | end |
41 | 37 | ||
42 | def test_should_present_pending_tasks_in_index | 38 | def test_should_present_pending_tasks_in_index |
@@ -207,7 +203,11 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | @@ -207,7 +203,11 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | ||
207 | assert_equal false, Profile['ze'].public_profile | 203 | assert_equal false, Profile['ze'].public_profile |
208 | end | 204 | end |
209 | 205 | ||
210 | - should 'show error messages for' | 206 | + should 'show error messages for invalid foundation_year' do |
207 | + org = Organization.create!(:name => 'test org', :identifier => 'testorg') | ||
208 | + post :edit, :profile => 'testorg', :profile_data => { :foundation_year => 'aaa' } | ||
209 | + assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' } | ||
210 | + end | ||
211 | 211 | ||
212 | should 'edit enterprise' do | 212 | should 'edit enterprise' do |
213 | ent = Enterprise.create!(:name => 'test org', :identifier => 'testent') | 213 | ent = Enterprise.create!(:name => 'test org', :identifier => 'testent') |
test/integration/editing_person_info_test.rb
@@ -13,9 +13,7 @@ class EditingPersonInfoTest < ActionController::IntegrationTest | @@ -13,9 +13,7 @@ class EditingPersonInfoTest < ActionController::IntegrationTest | ||
13 | get '/myprofile/ze' | 13 | get '/myprofile/ze' |
14 | assert_response :success | 14 | assert_response :success |
15 | 15 | ||
16 | - assert_tag :tag => 'td', :content => profile.name | ||
17 | - assert_tag :tag => 'td', :content => profile.address | ||
18 | - assert_tag :tag => 'td', :content => profile.contact_information | 16 | + assert_tag :tag => 'a', :content => 'Edit Profile' |
19 | 17 | ||
20 | get '/myprofile/ze/profile_editor/edit' | 18 | get '/myprofile/ze/profile_editor/edit' |
21 | assert_response :success | 19 | assert_response :success |