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 4453e8f commit a887fccCopy full SHA for a887fcc
spec/inertia/conditional_sharing_spec.rb
@@ -19,10 +19,8 @@
19
20
context "when there is conditional data shared via before_action" do
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}
+ # InertiaSharedData isn't frozen until after the first time it's accessed.
+ InertiaConditionalSharingController.send(:_inertia_shared_data)
26
27
expect {
28
get conditional_share_show_with_a_problem_path, headers: {'X-Inertia' => true}
0 commit comments