mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #21417 from rousisk/docfix
fix reference to undefined variable in email testing guide [ci skip]
This commit is contained in:
commit
9e2b13ca35
1 changed files with 5 additions and 2 deletions
|
@ -1115,10 +1115,13 @@ require 'test_helper'
|
|||
|
||||
class UserMailerTest < ActionMailer::TestCase
|
||||
test "invite" do
|
||||
# Create the email and store it for further assertions
|
||||
email = UserMailer.create_invite('me@example.com',
|
||||
'friend@example.com', Time.now)
|
||||
|
||||
# Send the email, then test that it got queued
|
||||
assert_emails 1 do
|
||||
email = UserMailer.create_invite('me@example.com',
|
||||
'friend@example.com', Time.now).deliver_now
|
||||
email.deliver_now
|
||||
end
|
||||
|
||||
# Test the body of the sent email contains what we expect it to
|
||||
|
|
Loading…
Reference in a new issue