X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/84d90fabe44a7aff9a111162cbd1e1d463ac1f9c..0ff89c31e4f8a0c3fc31772c4cf914c4fd7f5656:/test/controllers/users_controller_test.rb diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb index bffcfe5bd..89c2d2c9c 100644 --- a/test/controllers/users_controller_test.rb +++ b/test/controllers/users_controller_test.rb @@ -969,13 +969,13 @@ class UsersControllerTest < ActionDispatch::IntegrationTest assert_select "form#accountForm > fieldset > div.standard-form-row > select#user_preferred_editor > option[selected]", false # Changing to a valid editor should work - user.preferred_editor = "potlatch2" + user.preferred_editor = "id" post user_account_path(user), :params => { :user => user.attributes } assert_response :success assert_template :account assert_select "div#errorExplanation", false assert_select ".notice", /^User information updated successfully/ - assert_select "form#accountForm > fieldset > div.standard-form-row > select#user_preferred_editor > option[selected][value=?]", "potlatch2" + assert_select "form#accountForm > fieldset > div.standard-form-row > select#user_preferred_editor > option[selected][value=?]", "id" # Changing to the default editor should work user.preferred_editor = "default"