aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 16:38:33 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 16:38:33 -0700
commit3e199600ec1117b6595e402a27d1ae58c18b39e7 (patch)
tree6f72385d216d61ebdcdbdc9aee8aff5651115189 /test
parent78e7ceb347ae4ca43e749bf33a6636500918ecd2 (diff)
downloadrails-3e199600ec1117b6595e402a27d1ae58c18b39e7.tar.gz
rails-3e199600ec1117b6595e402a27d1ae58c18b39e7.tar.bz2
rails-3e199600ec1117b6595e402a27d1ae58c18b39e7.zip
Routing is a named concept now
Diffstat (limited to 'test')
-rw-r--r--test/unit/inbound_email/routing_test.rb (renamed from test/unit/inbound_email/deliver_to_mailroom_test.rb)4
-rw-r--r--test/unit/mailbox/routing_test.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/inbound_email/deliver_to_mailroom_test.rb b/test/unit/inbound_email/routing_test.rb
index ff67057cb8..8f946b24f5 100644
--- a/test/unit/inbound_email/deliver_to_mailroom_test.rb
+++ b/test/unit/inbound_email/routing_test.rb
@@ -1,8 +1,8 @@
require_relative '../../test_helper'
-class ActionMailroom::InboundEmail::DeliverToMailroomTest < ActiveSupport::TestCase
+class ActionMailroom::InboundEmail::RoutingTest < ActiveSupport::TestCase
test "pending emails are delivered to the mailroom" do
- assert_enqueued_jobs 1, only: ActionMailroom::DeliverInboundEmailToMailroomJob do
+ assert_enqueued_jobs 1, only: ActionMailroom::RoutingJob do
create_inbound_email("welcome.eml", status: :pending)
end
end
diff --git a/test/unit/mailbox/routing_test.rb b/test/unit/mailbox/routing_test.rb
index 9771efcf40..6026686bea 100644
--- a/test/unit/mailbox/routing_test.rb
+++ b/test/unit/mailbox/routing_test.rb
@@ -22,7 +22,7 @@ class ActionMailroom::Mailbox::RoutingTest < ActiveSupport::TestCase
end
test "delayed routing" do
- perform_enqueued_jobs only: ActionMailroom::DeliverInboundEmailToMailroomJob do
+ perform_enqueued_jobs only: ActionMailroom::RoutingJob do
another_inbound_email = create_inbound_email("welcome.eml", status: :pending)
assert_equal "Discussion: Let's debate these attachments", $processed
end