File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
dummy/config/environments Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 29
29
config . cache_store = :null_store
30
30
31
31
# Raise exceptions instead of rendering exception templates.
32
- config . action_dispatch . show_exceptions = :none
32
+ config . action_dispatch . show_exceptions = false
33
33
34
34
# Disable request forgery protection in test environment.
35
35
config . action_controller . allow_forgery_protection = false
Original file line number Diff line number Diff line change 19
19
20
20
context "when there is conditional data shared via before_action" do
21
21
it "raises an error because it is frozen" do
22
+ # Rails < 7.1 won't raise the error unless we load the controller before the request we actually want to test.
23
+ #
24
+ # This can be removed when we drop support for Rails < 7.1.
25
+ get conditional_share_show_path , headers : { 'X-Inertia' => true }
26
+
22
27
expect {
23
28
get conditional_share_show_with_a_problem_path , headers : { 'X-Inertia' => true }
24
29
} . to raise_error ( FrozenError )
You can’t perform that action at this time.
0 commit comments