Commit 2365887c304cfe9c6912f64f2e0fe6fc8d03fd0d
1 parent
c52e1229
Exists in
master
and in
5 other branches
Updating institution's funcional tests of profile editor
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/functional/account_controller_test.rb
| @@ -27,7 +27,7 @@ class AccountControllerTest < ActionController::TestCase | @@ -27,7 +27,7 @@ class AccountControllerTest < ActionController::TestCase | ||
| 27 | :password_confirmation=>"nova_senha", | 27 | :password_confirmation=>"nova_senha", |
| 28 | :email=>"um@novo.usuario", | 28 | :email=>"um@novo.usuario", |
| 29 | :secondary_email=>"outro@email.com", | 29 | :secondary_email=>"outro@email.com", |
| 30 | - :institution_id=>@institution_list.last.id | 30 | + :institution_ids=>[@institution_list.last.id] |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | @profile_data_info = { | 33 | @profile_data_info = { |
| @@ -39,7 +39,7 @@ class AccountControllerTest < ActionController::TestCase | @@ -39,7 +39,7 @@ class AccountControllerTest < ActionController::TestCase | ||
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | should "Create a user without gov email and institution" do | 41 | should "Create a user without gov email and institution" do |
| 42 | - @user_info[:institution_id] = nil | 42 | + @user_info[:institution_ids] = nil |
| 43 | 43 | ||
| 44 | post :signup, :user => @user_info, :profile_data => @profile_data_info | 44 | post :signup, :user => @user_info, :profile_data => @profile_data_info |
| 45 | 45 | ||
| @@ -58,7 +58,7 @@ class AccountControllerTest < ActionController::TestCase | @@ -58,7 +58,7 @@ class AccountControllerTest < ActionController::TestCase | ||
| 58 | 58 | ||
| 59 | should "Do not create a user with gov email without institution" do | 59 | should "Do not create a user with gov email without institution" do |
| 60 | @user_info[:email] = "email@gov.br" | 60 | @user_info[:email] = "email@gov.br" |
| 61 | - @user_info[:institution_id] = nil | 61 | + @user_info[:institution_ids] = nil |
| 62 | 62 | ||
| 63 | post :signup, :user => @user_info, :profile_data => @profile_data_info | 63 | post :signup, :user => @user_info, :profile_data => @profile_data_info |
| 64 | 64 | ||
| @@ -98,7 +98,7 @@ class AccountControllerTest < ActionController::TestCase | @@ -98,7 +98,7 @@ class AccountControllerTest < ActionController::TestCase | ||
| 98 | :password_confirmation=>"nova_senha", | 98 | :password_confirmation=>"nova_senha", |
| 99 | :email=>"um@novo.usuario", | 99 | :email=>"um@novo.usuario", |
| 100 | :secondary_email=>"outro@email.com", | 100 | :secondary_email=>"outro@email.com", |
| 101 | - :institution_id=>@institution_list.last.id | 101 | + :institution_ids=>[@institution_list.last.id] |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | profile_data = { | 104 | profile_data = { |