summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-03-22 20:27:36 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-05-25 16:56:06 -0400
commit2682c5884777f1bfd5cb0b5c85b1f3c188906460 (patch)
treedd4ff8e8ae0e4b9f11fcf253acda7f44670a3d7a /spec/mailers
parentf96127bc2c9d9b711960cc2ea4cb4f2ffde5cfcb (diff)
downloadgitlab-ce-2682c5884777f1bfd5cb0b5c85b1f3c188906460.tar.gz
Customize ActionMailer preview path
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/previews/devise_mailer_preview.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/mailers/previews/devise_mailer_preview.rb b/spec/mailers/previews/devise_mailer_preview.rb
new file mode 100644
index 00000000000..8a4d6e7250e
--- /dev/null
+++ b/spec/mailers/previews/devise_mailer_preview.rb
@@ -0,0 +1,11 @@
+class DeviseMailerPreview < ActionMailer::Preview
+ def confirmation_instructions_for_signup
+ user = User.new(email: 'signup@example.com')
+ DeviseMailer.confirmation_instructions(user, 'faketoken', {})
+ end
+
+ def confirmation_instructions_for_new_email
+ user = User.last
+ DeviseMailer.confirmation_instructions(user, 'faketoken', {})
+ end
+end