Module: Inertia::RSpec::TestHelpers
- Defined in:
- lib/inertia/rspec.rb
Instance Method Summary collapse
-
#inertia ⇒ TestResponse?
Returns the Inertia response from the last request.
Instance Method Details
#inertia ⇒ TestResponse?
Returns the Inertia response from the last request.
66 67 68 69 70 71 |
# File 'lib/inertia/rspec.rb', line 66 def inertia inertia_response = Fiber.current.instance_variable_get(:@__inertia_current_response) return unless inertia_response TestResponse.new(inertia_response) end |