diff options
Diffstat (limited to 'test/unit/controller_test.rb')
-rw-r--r-- | test/unit/controller_test.rb | 8 |
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 |