We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1acc24 commit e54d651Copy full SHA for e54d651
test/support/rails_7_patch.rb
@@ -0,0 +1,11 @@
1
+# HACK: to prevent the resetting of instances variables after each request in Rails 7
2
+# see https://github.com/rails/rails/pull/43735
3
+if Rails::VERSION::MAJOR >= 7
4
+ module ActionController
5
+ module Testing
6
+ module Functional
7
+ def clear_instance_variables_between_requests; end
8
+ end
9
10
11
+end
test/test_helper.rb
@@ -49,6 +49,7 @@ def silence_warnings
49
50
require 'support/rails_app'
51
52
+require 'support/rails_7_patch'
53
require 'support/ruby_2_6_rails_4_2_patch'
54
55
# require "rails/test_help"
0 commit comments