From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- test/functional/notifications_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/functional/notifications_test.rb (limited to 'test/functional/notifications_test.rb') diff --git a/test/functional/notifications_test.rb b/test/functional/notifications_test.rb new file mode 100644 index 0000000..d84bda2 --- /dev/null +++ b/test/functional/notifications_test.rb @@ -0,0 +1,12 @@ +require 'test_helper' + +class NotificationsTest < ActionMailer::TestCase + test "new_pin" do + mail = Notifications.new_pin + assert_equal "New pin", mail.subject + assert_equal ["to@example.org"], mail.to + assert_equal ["from@example.com"], mail.from + assert_match "Hi", mail.body.encoded + end + +end -- cgit v1.2.3