diff options
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r-- | test/functional/users_controller_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index f5eb79a3f..42dae0f50 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -259,7 +259,7 @@ class UsersControllerTest < Redmine::ControllerTest def test_create_with_failure assert_no_difference 'User.count' do - post :create, :params => {:user => {}} + post :create, :params => {:user => {:login => 'foo'}} end assert_response :success assert_select_error /Email cannot be blank/ @@ -268,7 +268,9 @@ class UsersControllerTest < Redmine::ControllerTest def test_create_with_failure_sould_preserve_preference assert_no_difference 'User.count' do post :create, :params => { - :user => {}, + :user => { + :login => 'foo' + }, :pref => { 'no_self_notified' => '1', 'hide_mail' => '1', |