mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-19 02:44:31 -05:00
Mailer subjects namespaced by model
This commit is contained in:
@@ -3,6 +3,15 @@ class ActiveSupport::TestCase
|
||||
ActionMailer::Base.deliveries = []
|
||||
end
|
||||
|
||||
def store_translations(locale, translations, &block)
|
||||
begin
|
||||
I18n.backend.store_translations locale, translations
|
||||
yield
|
||||
ensure
|
||||
I18n.reload!
|
||||
end
|
||||
end
|
||||
|
||||
# Helpers for creating new users
|
||||
#
|
||||
def generate_unique_email
|
||||
|
||||
Reference in New Issue
Block a user