diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 22:18:55 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-17 22:18:55 -0700 |
commit | dd55bf66d27ce59405e7c1487f2f6edc61934dba (patch) | |
tree | 326378f9f54115e4572f60e93d0cfee46417ad51 /test | |
parent | bf164da94d462614cb97b3ab65b2431141a9b732 (diff) | |
download | rails-dd55bf66d27ce59405e7c1487f2f6edc61934dba.tar.gz rails-dd55bf66d27ce59405e7c1487f2f6edc61934dba.tar.bz2 rails-dd55bf66d27ce59405e7c1487f2f6edc61934dba.zip |
Assert the intended email was processed
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/router_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/router_test.rb b/test/unit/router_test.rb index 53a3d29f40..adc4cb3d71 100644 --- a/test/unit/router_test.rb +++ b/test/unit/router_test.rb @@ -2,7 +2,7 @@ require_relative '../test_helper' class RepliesMailbox < ActionMailroom::Mailbox def process - $processed = true + $processed = mail.subject end end @@ -15,7 +15,7 @@ module ActionMailroom test "routed to mailbox" do @router.route create_inbound_email("welcome.eml") - assert $processed + assert_equal $processed, "Discussion: Let's debate these attachments" end end end |