1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 22:21:26 +00:00

Fixed reset password after the Devise migration.

This commit is contained in:
2025-04-11 07:59:55 -04:00
parent 2d433b680a
commit 4828d9b876
8 changed files with 75 additions and 2 deletions

View File

@@ -13,6 +13,15 @@ class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
# Configure email for testing
def setup_test_mailer
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.deliveries = []
Rails.application.routes.default_url_options[:host] = 'example.com'
ActionMailer::Base.default from: 'test@example.com'
end
# Authentication helpers for tests - replaces Devise test helpers
def sign_in(user)
# Set the password_digest for the user if it's not already set