Created
December 12, 2011 20:00
-
-
Save SpencerCooley/1468839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class NotifierTest < ActionMailer::TestCase | |
test "order_recieved" do | |
mail = Notifier.order_recieved | |
assert_equal "Order recieved", mail.subject | |
assert_equal ["[email protected]"], mail.to | |
assert_equal ["[email protected]"], mail.from | |
assert_match "Hi", mail.body.encoded | |
end | |
test "order_shipped" do | |
mail = Notifier.order_shipped | |
assert_equal "Order shipped", mail.subject | |
assert_equal ["[email protected]"], mail.to | |
assert_equal ["[email protected]"], mail.from | |
assert_match "Hi", mail.body.encoded | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment