1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 05:43:47 +00:00

Fixed reset password after the Devise migration.

This commit is contained in:
2025-04-09 17:18:47 -04:00
parent 2d433b680a
commit e934e2d65e
7 changed files with 74 additions and 1 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