diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 1c87a86..cdc6b3f 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -130,6 +130,14 @@ class AccountControllerTest < ActionController::TestCase post :signup, :user => @user_info, :profile_data => @profile_data_info assert !assigns(:user).save, "This should not have been saved." + + should "user can register without secondary_email" do + @user_info[:secondary_email] = "" + + post :signup, :user => @user_info, :profile_data => @profile_data_info + + assert_equal assigns(:user).login, @user_info[:login] + assert assigns(:user).save end private -- libgit2 0.21.2