Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created December 12, 2011 20:00
Show Gist options
  • Save SpencerCooley/1468839 to your computer and use it in GitHub Desktop.
Save SpencerCooley/1468839 to your computer and use it in GitHub Desktop.
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