summaryrefslogtreecommitdiff
path: root/test/functional/notifications_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/notifications_test.rb')
-rw-r--r--test/functional/notifications_test.rb12
1 files changed, 12 insertions, 0 deletions
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