diff options
author | George Claghorn <george@basecamp.com> | 2018-11-05 09:11:01 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-11-05 09:11:01 -0500 |
commit | 7755f9b381c007ce98e0858473a9f29f1cd25311 (patch) | |
tree | 9130fccc00bf2602cdcf92eda572deec911f6302 /test/controllers/ingresses/amazon/inbound_emails_controller_test.rb | |
parent | cb041ddc7e94da15e2db72188545f78da6cadb53 (diff) | |
download | rails-7755f9b381c007ce98e0858473a9f29f1cd25311.tar.gz rails-7755f9b381c007ce98e0858473a9f29f1cd25311.tar.bz2 rails-7755f9b381c007ce98e0858473a9f29f1cd25311.zip |
Read ingress passwords/API keys from encrypted credentials
Fall back to ENV for people who prefer that approach.
Diffstat (limited to 'test/controllers/ingresses/amazon/inbound_emails_controller_test.rb')
-rw-r--r-- | test/controllers/ingresses/amazon/inbound_emails_controller_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/controllers/ingresses/amazon/inbound_emails_controller_test.rb b/test/controllers/ingresses/amazon/inbound_emails_controller_test.rb index 5eda6d8d65..c36c500cbe 100644 --- a/test/controllers/ingresses/amazon/inbound_emails_controller_test.rb +++ b/test/controllers/ingresses/amazon/inbound_emails_controller_test.rb @@ -4,6 +4,8 @@ ActionMailbox::Ingresses::Amazon::InboundEmailsController.verifier = Module.new { def self.authentic?(message); true; end } class ActionMailbox::Ingresses::Amazon::InboundEmailsControllerTest < ActionDispatch::IntegrationTest + setup { ActionMailbox.ingress = :amazon } + test "receiving an inbound email from Amazon" do assert_difference -> { ActionMailbox::InboundEmail.count }, +1 do post rails_amazon_inbound_emails_url, params: { content: file_fixture("../files/welcome.eml").read }, as: :json |