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 5d64851Copy full SHA for 5d64851
test/support/rails_7_patch.rb
@@ -0,0 +1,13 @@
1
+# frozen_string_literal: true
2
+
3
+# HACK: to prevent the resetting of instance variables after each request in Rails 7
4
+# see https://github.com/rails/rails/pull/43735
5
+if Rails::VERSION::MAJOR >= 7
6
+ module ActionController
7
+ module Testing
8
+ module Functional
9
+ def clear_instance_variables_between_requests; end
10
+ end
11
12
13
+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