File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,22 @@ module RailsExampleGroup
12
12
include RSpec ::Rails ::MinitestLifecycleAdapter
13
13
include RSpec ::Rails ::MinitestAssertionAdapter
14
14
include RSpec ::Rails ::FixtureSupport
15
- include RSpec ::Rails ::TaggedLoggingAdapter if ::Rails ::VERSION ::MAJOR >= 7
16
15
17
16
if ::Rails ::VERSION ::MAJOR >= 7
18
17
include RSpec ::Rails ::TaggedLoggingAdapter
19
- include ActiveSupport :: ExecutionContext :: TestHelper
20
- included do | _other |
21
- around do |example |
22
- if :: Rails . configuration . active_support . executor_around_test_case
18
+
19
+ if :: Rails . configuration . active_support . executor_around_test_case
20
+ included do |_other |
21
+ around do | example |
23
22
::Rails . application . executor . perform { example . call }
24
- else
25
- example . call
26
23
end
27
24
end
25
+ else
26
+ require 'active_support/current_attributes/test_helper'
27
+ include ActiveSupport ::CurrentAttributes ::TestHelper
28
+
29
+ require 'active_support/execution_context/test_helper'
30
+ include ActiveSupport ::ExecutionContext ::TestHelper
28
31
end
29
32
end
30
33
end
You can’t perform that action at this time.
0 commit comments