Commit 8bc5d3a3eb9f257e4080a920507e4f6443f94cb7

Authored by Joenio Costa
1 parent e75f7078

ActionItem709: opps! syntax error on profile_editor_controller

test/functional/profile_editor_controller_test.rb
@@ -507,11 +507,12 @@ class ProfileEditorControllerTest < Test::Unit::TestCase @@ -507,11 +507,12 @@ class ProfileEditorControllerTest < Test::Unit::TestCase
507 person = User.create(:login => 'test_profile', :email => 'test@noosfero.org', :password => 'test', :password_confirmation => 'test').person 507 person = User.create(:login => 'test_profile', :email => 'test@noosfero.org', :password => 'test', :password_confirmation => 'test').person
508 get :edit, :profile => person.identifier 508 get :edit, :profile => person.identifier
509 assert_no_tag :tag => 'div', :descendant => { :tag => 'h2', :content => 'Select the categories of your interest' } 509 assert_no_tag :tag => 'div', :descendant => { :tag => 'h2', :content => 'Select the categories of your interest' }
  510 + end
510 511
511 should 'show a e-mail field in profile editor' do 512 should 'show a e-mail field in profile editor' do
512 create_user('test_user', :email=>'teste_user@teste.com') 513 create_user('test_user', :email=>'teste_user@teste.com')
513 login_as('test_user') 514 login_as('test_user')
514 - get :profile_editor, :action => 'edit', :profile => 'test_user' 515 + get :edit, :profile => 'test_user'
515 516
516 assert_tag :tag => 'input', 517 assert_tag :tag => 'input',
517 :attributes => { :name=>'profile_data[email]', :value=>'teste_user@teste.com' } 518 :attributes => { :name=>'profile_data[email]', :value=>'teste_user@teste.com' }