File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
spec/rspec/rails/matchers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ def test_email; end
22
22
def email_with_args ( arg1 , arg2 ) ; end
23
23
end
24
24
25
- class SubClassDeliveryJob < ActionMailer ::DeliveryJob
25
+ class DeliveryJobSubClass < ActionMailer ::DeliveryJob
26
26
end
27
27
28
- class SubClassUnifiedMailer < ActionMailer ::Base
29
- self . delivery_job = SubClassDeliveryJob
28
+ class UnifiedMailerWithDeliveryJobSubClass < ActionMailer ::Base
29
+ self . delivery_job = DeliveryJobSubClass
30
30
31
31
def test_email ; end
32
32
end
@@ -407,10 +407,10 @@ def self.name; "NonMailerJob"; end
407
407
)
408
408
end
409
409
410
- it "passes subclass delivery_job" do
410
+ it "passes when using a mailer with ` delivery_job` set to a sub class of `ActionMailer::Base` " do
411
411
expect {
412
- SubClassUnifiedMailer . test_email . deliver_later
413
- } . to have_enqueued_mail ( SubClassUnifiedMailer , :test_email )
412
+ UnifiedMailerWithDeliveryJobSubClass . test_email . deliver_later
413
+ } . to have_enqueued_mail ( UnifiedMailerWithDeliveryJobSubClass , :test_email )
414
414
end
415
415
end
416
416
end
You can’t perform that action at this time.
0 commit comments