mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Allow users to update their email address (#1745)
* Change email address * Email confirmation * Email change test * Lint * Schema reset * Set test email sender * Select specific user fixture * Refactor/cleanup * Remove unused email_confirmation_token * Current user would never be true * Fix translation test failures
This commit is contained in:
parent
46e86a9a11
commit
41873de11d
28 changed files with 225 additions and 15 deletions
|
@ -18,10 +18,14 @@ Rails.application.configure do
|
|||
config.eager_load = ENV["CI"].present?
|
||||
|
||||
# Configure public file server for tests with Cache-Control for performance.
|
||||
config.public_file_server.enabled = true
|
||||
config.public_file_server.headers = {
|
||||
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
||||
}
|
||||
|
||||
# Set default sender email for tests
|
||||
ENV["EMAIL_SENDER"] = "hello@maybefinance.com"
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
@ -69,4 +73,6 @@ Rails.application.configure do
|
|||
config.active_record.encryption.encrypt_fixtures = true
|
||||
|
||||
config.autoload_paths += %w[test/support]
|
||||
|
||||
config.action_mailer.default_url_options = { host: "example.com" }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue