You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
638 B
20 lines
638 B
require 'test_helper'
|
|
|
|
class UserMailerTest < ActionMailer::TestCase
|
|
test "activation_needed_email" do
|
|
mail = UserMailer.activation_needed_email
|
|
assert_equal "Activation needed email", mail.subject
|
|
assert_equal ["to@example.org"], mail.to
|
|
assert_equal ["from@example.com"], mail.from
|
|
assert_match "Hi", mail.body.encoded
|
|
end
|
|
|
|
test "activation_success_email" do
|
|
mail = UserMailer.activation_success_email
|
|
assert_equal "Activation success email", mail.subject
|
|
assert_equal ["to@example.org"], mail.to
|
|
assert_equal ["from@example.com"], mail.from
|
|
assert_match "Hi", mail.body.encoded
|
|
end
|
|
|
|
end
|
|
|