X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3871d61be43857436d1eaefe9e84841e8a7d0f4f..406d90c5c8da5633324bb1d28d7a2103a61c95e4:/test/controllers/accounts_controller_test.rb?ds=sidebyside diff --git a/test/controllers/accounts_controller_test.rb b/test/controllers/accounts_controller_test.rb index 1e39a7329..7546c3797 100644 --- a/test/controllers/accounts_controller_test.rb +++ b/test/controllers/accounts_controller_test.rb @@ -60,7 +60,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest patch account_path, :params => { :user => new_attributes } assert_response :success assert_template :edit - assert_select ".notice", false + assert_select ".alert-success", false assert_select "form#accountForm > div > input.is-invalid#user_display_name" # Changing name to one that exists should fail, regardless of case @@ -68,7 +68,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest patch account_path, :params => { :user => new_attributes } assert_response :success assert_template :edit - assert_select ".notice", false + assert_select ".alert-success", false assert_select "form#accountForm > div > input.is-invalid#user_display_name" # Changing name to one that doesn't exist should work @@ -79,7 +79,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest get edit_account_path assert_response :success assert_template :edit - assert_select ".notice", /^User information updated successfully/ + assert_select ".alert-success", /^User information updated successfully/ assert_select "form#accountForm > div > input#user_display_name[value=?]", "new tester" # Record the change of name @@ -94,7 +94,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest end assert_response :success assert_template :edit - assert_select ".notice", false + assert_select ".alert-success", false assert_select "form#accountForm > div > input.is-invalid#user_new_email" # Changing email to one that exists should fail, regardless of case @@ -106,7 +106,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest end assert_response :success assert_template :edit - assert_select ".notice", false + assert_select ".alert-success", false assert_select "form#accountForm > div > input.is-invalid#user_new_email" # Changing email to one that doesn't exist should work @@ -121,7 +121,7 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest get edit_account_path assert_response :success assert_template :edit - assert_select ".notice", /^User information updated successfully/ + assert_select ".alert-success", /^User information updated successfully/ assert_select "form#accountForm > div > input#user_new_email[value=?]", user.new_email email = ActionMailer::Base.deliveries.first assert_equal 1, email.to.count