Redmine 4.1.7
This commit is contained in:
parent
55458d3479
commit
3ca3c37487
103 changed files with 2426 additions and 431 deletions
|
@ -237,6 +237,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
|||
get :new
|
||||
assert_response :success
|
||||
assert_select 'input[name=?]', 'user[login]'
|
||||
assert_select 'label[for=?]>span.required', 'user_password', 1
|
||||
end
|
||||
|
||||
def test_create
|
||||
|
@ -427,6 +428,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
|||
assert_response :success
|
||||
assert_select 'h2>a+img.gravatar'
|
||||
assert_select 'input[name=?][value=?]', 'user[login]', 'jsmith'
|
||||
assert_select 'label[for=?]>span.required', 'user_password', 0
|
||||
end
|
||||
|
||||
def test_edit_registered_user
|
||||
|
@ -708,6 +710,19 @@ class UsersControllerTest < Redmine::ControllerTest
|
|||
assert_response 404
|
||||
end
|
||||
|
||||
def test_update_with_blank_email_should_not_raise_exception
|
||||
assert_no_difference 'User.count' do
|
||||
with_settings :gravatar_enabled => '1' do
|
||||
put :update, :params => {
|
||||
:id => 2,
|
||||
:user => {:mail => ''}
|
||||
}
|
||||
end
|
||||
end
|
||||
assert_response :success
|
||||
assert_select_error /Email cannot be blank/
|
||||
end
|
||||
|
||||
def test_destroy
|
||||
assert_difference 'User.count', -1 do
|
||||
delete :destroy, :params => {:id => 2}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue