As noted by @christoomey , the error message for ensuring users set inertia: true in RSpec specs can be misleading.
This PR changes the code to check the actual example metadata before warning about the test setup.
Additionally, it adds a warning when you create a spec that expects inertia but never creates an inertia renderer. This isn't directly part of #61, but is something that has tripped me up in the past.
Resolves #61
As noted by @christoomey , the error message for ensuring users set
inertia: true
in RSpec specs can be misleading.This PR changes the code to check the actual example metadata before warning about the test setup.
Additionally, it adds a warning when you create a spec that expects inertia but never creates an inertia renderer. This isn't directly part of #61, but is something that has tripped me up in the past.