11 lines
318 B
Ruby
11 lines
318 B
Ruby
require "test_helper"
|
|
|
|
class ProductMailerTest < ActionMailer::TestCase
|
|
test "in_stock" do
|
|
mail = ProductMailer.in_stock
|
|
assert_equal "In stock", mail.subject
|
|
assert_equal [ "to@example.org" ], mail.to
|
|
assert_equal [ "from@example.com" ], mail.from
|
|
assert_match "Hi", mail.body.encoded
|
|
end
|
|
end
|