Skip to content

Commit

Permalink
Fix naming and grammer.
Browse files Browse the repository at this point in the history
  • Loading branch information
yalab committed Mar 31, 2020
1 parent 2b14818 commit bfbd3e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/rspec/rails/matchers/have_enqueued_mail_spec.rb
Expand Up @@ -22,11 +22,11 @@ def test_email; end
def email_with_args(arg1, arg2); end
end

class SubClassDeliveryJob < ActionMailer::DeliveryJob
class DeliveryJobSubClass < ActionMailer::DeliveryJob
end

class SubClassUnifiedMailer < ActionMailer::Base
self.delivery_job = SubClassDeliveryJob
class UnifiedMailerWithDeliveryJobSubClass < ActionMailer::Base
self.delivery_job = DeliveryJobSubClass

def test_email; end
end
Expand Down Expand Up @@ -407,10 +407,10 @@ def self.name; "NonMailerJob"; end
)
end

it "passes subclass delivery_job" do
it "passes when using a mailer with `delivery_job` set to a sub class of `ActionMailer::Base`" do
expect {
SubClassUnifiedMailer.test_email.deliver_later
}.to have_enqueued_mail(SubClassUnifiedMailer, :test_email)
UnifiedMailerWithDeliveryJobSubClass.test_email.deliver_later
}.to have_enqueued_mail(UnifiedMailerWithDeliveryJobSubClass, :test_email)
end
end
end
Expand Down

0 comments on commit bfbd3e0

Please sign in to comment.