summaryrefslogtreecommitdiff
path: root/test/functional/notifications_test.rb
blob: d84bda20db7d69a28bef0d5c025aeacfe3abfc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
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