X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1935b1c5786de8f27bee9b6b2da2f28f650468f..085d8ebe6a6cfd490d52de959b14c1b2bd7da6f6:/test/controllers/preferences_controller_test.rb?ds=inline diff --git a/test/controllers/preferences_controller_test.rb b/test/controllers/preferences_controller_test.rb index 8c529e62a..46d761ca4 100644 --- a/test/controllers/preferences_controller_test.rb +++ b/test/controllers/preferences_controller_test.rb @@ -29,9 +29,9 @@ class PreferencesControllerTest < ActionDispatch::IntegrationTest put preferences_path, :params => { :user => user.attributes } assert_response :success assert_template :edit - assert_select ".notice", false - assert_select ".error", true - assert_select "form > div.form-group > select#user_preferred_editor > option[selected]", false + assert_select ".alert-success", false + assert_select ".alert-danger", true + assert_select "form > div > select#user_preferred_editor > option[selected]", false # Changing to a valid editor should work user.preferred_editor = "id" @@ -40,7 +40,7 @@ class PreferencesControllerTest < ActionDispatch::IntegrationTest assert_redirected_to preferences_path follow_redirect! assert_template :show - assert_select ".notice", /^Preferences updated/ + assert_select ".alert-success", /^Preferences updated/ assert_select "dd", "iD (in-browser editor)" # Changing to the default editor should work @@ -50,7 +50,7 @@ class PreferencesControllerTest < ActionDispatch::IntegrationTest assert_redirected_to preferences_path follow_redirect! assert_template :show - assert_select ".notice", /^Preferences updated/ + assert_select ".alert-success", /^Preferences updated/ assert_select "dd", "Default (currently iD)" end end