Skip to content

Commit

Permalink
Account for Rails config default switch
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio authored and JonRowe committed Apr 10, 2024
1 parent b430027 commit f35b3a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rspec/rails/example/rails_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ module RailsExampleGroup
include ActiveSupport::ExecutionContext::TestHelper
included do |_other|
around do |example|
::Rails.application.executor.perform { example.call }
if ::Rails.configuration.active_support.executor_around_test_case
::Rails.application.executor.perform { example.call }
else
example.call
end
end
end
end
Expand Down

0 comments on commit f35b3a6

Please sign in to comment.