Skip to content

Commit ab3145f

Browse files
skryukovbknoles
authored andcommitted
Rails 8, whats your problem?
1 parent 39ef508 commit ab3145f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inertia_rails/rspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def inertia_tests_setup?
7575
config.before(:each, inertia: true) do
7676
new_renderer = InertiaRails::Renderer.method(:new)
7777
allow(InertiaRails::Renderer).to receive(:new) do |component, controller, request, response, render, named_args|
78-
new_renderer.call(component, controller, request, response, inertia_wrap_render(render), **named_args)
78+
new_renderer.call(component, controller, request, response, inertia_wrap_render(render), **(named_args || {}))
7979
end
8080
end
8181
end

0 commit comments

Comments
 (0)