negos_app/test/mailers/annonce_account_test.rb
2016-02-16 21:09:48 +01:00

21 lines
554 B
Ruby
Executable File

require 'test_helper'
class CustomerTest < ActionMailer::TestCase
test "confirm" do
mail = Customer.confirm
assert_equal "Confirm", mail.subject
assert_equal ["to@example.org"], mail.to
assert_equal ["from@example.com"], mail.from
assert_match "Hi", mail.body.encoded
end
test "reset_password" do
mail = Customer.reset_password
assert_equal "Reset password", mail.subject
assert_equal ["to@example.org"], mail.to
assert_equal ["from@example.com"], mail.from
assert_match "Hi", mail.body.encoded
end
end