Commit 1f8b48d3d860eb35fc8b14597825a9311f3b3e82
1 parent
6a68f82d
Exists in
master
and in
5 other branches
corrections: Add functional test for secondary_email
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/functional/account_controller_test.rb
... | ... | @@ -130,6 +130,14 @@ class AccountControllerTest < ActionController::TestCase |
130 | 130 | |
131 | 131 | post :signup, :user => @user_info, :profile_data => @profile_data_info |
132 | 132 | assert !assigns(:user).save, "This should not have been saved." |
133 | + | |
134 | + should "user can register without secondary_email" do | |
135 | + @user_info[:secondary_email] = "" | |
136 | + | |
137 | + post :signup, :user => @user_info, :profile_data => @profile_data_info | |
138 | + | |
139 | + assert_equal assigns(:user).login, @user_info[:login] | |
140 | + assert assigns(:user).save | |
133 | 141 | end |
134 | 142 | |
135 | 143 | private | ... | ... |