Module: InertiaRails::Testing::RendererTestingPatch

Defined in:
lib/inertia_rails/testing.rb

Instance Method Summary collapse

Instance Method Details

#new(component, controller, request, response, render, **options) ⇒ Object



8
9
10
11
12
# File 'lib/inertia_rails/testing.rb', line 8

def new(component, controller, request, response, render, **options)
  wrapped = TestResponse.new.wrap_render(render)
  InertiaRails::Testing.current_response = wrapped
  super(component, controller, request, response, wrapped, **options)
end