aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/controller_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-28 12:19:43 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-28 12:19:43 -0700
commit8a0a1034955544ee2e4c1f85317c0db84f3aa55b (patch)
tree1e00acdce252b2ce505ff2e8f9f5acd4ba19bbeb /test/unit/controller_test.rb
parent5ad0813322820a6c42d7b3074531ac40108bfb69 (diff)
downloadrails-8a0a1034955544ee2e4c1f85317c0db84f3aa55b.tar.gz
rails-8a0a1034955544ee2e4c1f85317c0db84f3aa55b.tar.bz2
rails-8a0a1034955544ee2e4c1f85317c0db84f3aa55b.zip
ActionMailroom -> ActionMailbox
We didn't end up using the mailroom metaphor directly, so let's stick with a more conventional naming strategy.
Diffstat (limited to 'test/unit/controller_test.rb')
-rw-r--r--test/unit/controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/controller_test.rb b/test/unit/controller_test.rb
index f2a49f415f..508e561244 100644
--- a/test/unit/controller_test.rb
+++ b/test/unit/controller_test.rb
@@ -1,19 +1,19 @@
require_relative '../test_helper'
-class ActionMailroom::InboundEmailsControllerTest < ActionDispatch::IntegrationTest
+class ActionMailbox::InboundEmailsControllerTest < ActionDispatch::IntegrationTest
test "receiving a valid RFC 822 message" do
- assert_difference -> { ActionMailroom::InboundEmail.count }, +1 do
+ assert_difference -> { ActionMailbox::InboundEmail.count }, +1 do
post_inbound_email "welcome.eml"
end
assert_response :created
- inbound_email = ActionMailroom::InboundEmail.last
+ inbound_email = ActionMailbox::InboundEmail.last
assert_equal file_fixture('../files/welcome.eml').read, inbound_email.raw_email.download
end
test "rejecting a message of an unsupported type" do
- assert_no_difference -> { ActionMailroom::InboundEmail.count } do
+ assert_no_difference -> { ActionMailbox::InboundEmail.count } do
post rails_inbound_emails_url, params: { message: fixture_file_upload('files/text.txt', 'text/plain') }
end