Skip to content

Commit 699f729

Browse files
fabnpirj
authored andcommitted
Silence rubocop for HaveEnqueuedMail class length
1 parent ded3cfa commit 699f729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
module RSpec
88
module Rails
99
module Matchers
10+
# rubocop: disable Metrics/ClassLength
1011
# Matcher class for `have_enqueued_mail`. Should not be instantiated directly.
1112
#
1213
# @private
@@ -153,6 +154,8 @@ def unified_mail?(job)
153154
RSpec::Rails::FeatureCheck.has_action_mailer_unified_delivery? && job[:job] <= ActionMailer::MailDeliveryJob
154155
end
155156
end
157+
# rubocop: enable Metrics/ClassLength
158+
156159
# @api public
157160
# Passes if an email has been enqueued inside block.
158161
# May chain with to specify expected arguments.

0 commit comments

Comments
 (0)