File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -181,5 +181,15 @@ def assertion_delegator
181
181
#
182
182
# @private
183
183
TestUnitAssertionAdapter = MinitestAssertionAdapter
184
+
185
+ # @private
186
+ module TaggedLoggingAdapter
187
+ require 'active_support/testing/tagged_logging'
188
+ extend ActiveSupport ::Testing ::TaggedLogging
189
+
190
+ # Just a stub as TaggedLogging is calling `name`
191
+ def name
192
+ end
193
+ end
184
194
end
185
195
end
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ module RailsExampleGroup
12
12
include RSpec ::Rails ::MinitestLifecycleAdapter
13
13
include RSpec ::Rails ::MinitestAssertionAdapter
14
14
include RSpec ::Rails ::FixtureSupport
15
-
16
- if ::Rails ::VERSION ::MAJOR >= 7
17
- require 'active_support/testing/tagged_logging'
18
- include ActiveSupport ::Testing ::TaggedLogging
19
- end
15
+ include RSpec ::Rails ::TaggedLoggingAdapter if ::Rails ::VERSION ::MAJOR >= 7
20
16
end
21
17
end
22
18
end
You can’t perform that action at this time.
0 commit comments