File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ Style/EmptyMethod:
153
153
Style/FormatStringToken :
154
154
Enabled : false
155
155
156
+ Style/FrozenStringLiteralComment :
157
+ Enabled : false
158
+
156
159
Style/GuardClause :
157
160
Enabled : false
158
161
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def self.add_test_type_configurations(config)
54
54
end
55
55
56
56
# @private
57
- # rubocop:disable Style /MethodLength
57
+ # rubocop:disable Metrics /MethodLength
58
58
def self . initialize_configuration ( config )
59
59
config . backtrace_exclusion_patterns << /vendor\/ /
60
60
config . backtrace_exclusion_patterns << %r{lib/rspec/rails}
@@ -146,7 +146,7 @@ def filter_rails_from_backtrace!
146
146
config . include RSpec ::Rails ::MailboxExampleGroup , :type => :mailbox
147
147
end
148
148
end
149
- # rubocop:enable Style /MethodLength
149
+ # rubocop:enable Metrics /MethodLength
150
150
151
151
initialize_configuration RSpec . configuration
152
152
end
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module MailerExampleGroup
22
22
included do
23
23
include ::Rails . application . routes . url_helpers
24
24
options = ::Rails . configuration . action_mailer . default_url_options
25
- options . each { |key , value | default_url_options [ key ] = value } if options
25
+ options & .each { |key , value | default_url_options [ key ] = value }
26
26
end
27
27
28
28
# Class-level DSL for mailer specs.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module Matchers
8
8
#
9
9
# @api private
10
10
module ActiveJob
11
- # rubocop: disable Style /ClassLength
11
+ # rubocop: disable Metrics /ClassLength
12
12
# @private
13
13
class Base < RSpec ::Rails ::Matchers ::BaseMatcher
14
14
def initialize
@@ -179,7 +179,7 @@ def queue_adapter
179
179
::ActiveJob ::Base . queue_adapter
180
180
end
181
181
end
182
- # rubocop: enable Style /ClassLength
182
+ # rubocop: enable Metrics /ClassLength
183
183
184
184
# @private
185
185
class HaveEnqueuedJob < Base
You can’t perform that action at this time.
0 commit comments