aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-25 16:26:53 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-25 16:26:53 -0700
commit96b6e7ce669cf412f931e700fafc99d6d7ef031a (patch)
tree9a83e0abace43c641edb41ca8906e08049e24b28 /test/unit
parent8eb239bd1a1350b151d57a639e589c68aed1f47a (diff)
downloadrails-96b6e7ce669cf412f931e700fafc99d6d7ef031a.tar.gz
rails-96b6e7ce669cf412f931e700fafc99d6d7ef031a.tar.bz2
rails-96b6e7ce669cf412f931e700fafc99d6d7ef031a.zip
Extract and associate message_id with newly created inbound emails
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/inbound_email_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/inbound_email_test.rb b/test/unit/inbound_email_test.rb
new file mode 100644
index 0000000000..3eedd60472
--- /dev/null
+++ b/test/unit/inbound_email_test.rb
@@ -0,0 +1,10 @@
+require_relative '../test_helper'
+
+module ActionMailroom
+ class InboundEmailTest < ActiveSupport::TestCase
+ test "message id is extracted from raw email" do
+ inbound_email = create_inbound_email_from_fixture("welcome.eml")
+ assert_equal "0CB459E0-0336-41DA-BC88-E6E28C697DDB@37signals.com", inbound_email.message_id
+ end
+ end
+end