1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix reference to undefined variable in email testing guide [ci skip]

This commit is contained in:
Konstantinos Rousis 2015-08-28 09:18:52 +02:00
parent 93a4dfaebc
commit 7ddf72d008

View file

@ -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