Skip to content

Commit

Permalink
Fix assert_enqueued_email_with deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Jul 19, 2023
1 parent da026c8 commit d52860e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Identity::EmailVerificationsControllerTest < ActionDispatch::IntegrationTe
end

test "should send a verification email" do
assert_enqueued_email_with UserMailer, :email_verification, args: { user: @user } do
assert_enqueued_email_with UserMailer, :email_verification, params: { user: @user } do
post identity_email_verification_url, headers: default_headers
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Identity::PasswordResetsControllerTest < ActionDispatch::IntegrationTest
end

test "should send a password reset email" do
assert_enqueued_email_with UserMailer, :password_reset, args: { user: @user } do
assert_enqueued_email_with UserMailer, :password_reset, params: { user: @user } do
post identity_password_reset_url, params: { email: @user.email }
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Identity::EmailVerificationsControllerTest < ActionDispatch::IntegrationTe
end

test "should send a verification email" do
assert_enqueued_email_with UserMailer, :email_verification, args: { user: @user } do
assert_enqueued_email_with UserMailer, :email_verification, params: { user: @user } do
post identity_email_verification_url
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Identity::PasswordResetsControllerTest < ActionDispatch::IntegrationTest
end

test "should send a password reset email" do
assert_enqueued_email_with UserMailer, :password_reset, args: { user: @user } do
assert_enqueued_email_with UserMailer, :password_reset, params: { user: @user } do
post identity_password_reset_url, params: { email: @user.email }
end

Expand Down

0 comments on commit d52860e

Please sign in to comment.