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 2929 config . cache_store = :null_store
3030
3131 # Raise exceptions instead of rendering exception templates.
32- config . action_dispatch . show_exceptions = :none
32+ config . action_dispatch . show_exceptions = false
3333
3434 # Disable request forgery protection in test environment.
3535 config . action_controller . allow_forgery_protection = false
Original file line number Diff line number Diff line change 1919
2020 context "when there is conditional data shared via before_action" do
2121 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+
2227 expect {
2328 get conditional_share_show_with_a_problem_path , headers : { 'X-Inertia' => true }
2429 } . to raise_error ( FrozenError )
You can’t perform that action at this time.
0 commit comments