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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user