Module: ActionMailboxAmazonIngress::RSpec
- Defined in:
- lib/action_mailbox_amazon_ingress/rspec.rb,
lib/action_mailbox_amazon_ingress/rspec/email.rb,
lib/action_mailbox_amazon_ingress/rspec/subscription_confirmation.rb
Defined Under Namespace
Classes: Email, SubscriptionConfirmation
Instance Method Summary
collapse
Instance Method Details
#amazon_ingress_deliver_email(options = {}) ⇒ Object
19
20
21
22
23
24
25
26
27
|
# File 'lib/action_mailbox_amazon_ingress/rspec.rb', line 19
def amazon_ingress_deliver_email(options = {})
email = Email.new(**options)
stub_aws_sns_message_verifier(email)
post email.url,
params: email.params,
headers: email.,
as: :json
end
|
#amazon_ingress_deliver_subscription_confirmation(options = {}) ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/action_mailbox_amazon_ingress/rspec.rb', line 8
def amazon_ingress_deliver_subscription_confirmation(options = {})
subscription_confirmation = SubscriptionConfirmation.new(**options)
stub_aws_sns_message_verifier(subscription_confirmation)
stub_aws_sns_subscription_request
post subscription_confirmation.url,
params: subscription_confirmation.params,
headers: subscription_confirmation.,
as: :json
end
|