diff options
Diffstat (limited to 'spec/support/shared_examples/mailers/notify_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/mailers/notify_shared_examples.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/shared_examples/mailers/notify_shared_examples.rb b/spec/support/shared_examples/mailers/notify_shared_examples.rb index b0cbf0b0d65..2e182fb399d 100644 --- a/spec/support/shared_examples/mailers/notify_shared_examples.rb +++ b/spec/support/shared_examples/mailers/notify_shared_examples.rb @@ -280,6 +280,12 @@ RSpec.shared_examples 'no email is sent' do end end +RSpec.shared_examples 'a mail with default delivery method' do + it 'uses mailer default delivery method' do + expect(subject.delivery_method).to be_a ActionMailer::Base.delivery_methods[described_class.delivery_method] + end +end + RSpec.shared_examples 'does not render a manage notifications link' do it do aggregate_failures do |