You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
Since we’ve established that we’ll be using Rack::Test to drive the tests, RSpec request specs make the most sense. There’s no need to get fancy and add extra weight to your testing tools for this.
Request specs provide a thin wrapper around Rails’ integration tests, and are designed to drive behavior through the full stack, including routing (provided by Rails) and without stubbing (that’s up to you).
I think this idea is reasonable, so it might be worth moving it to request specs.
The text was updated successfully, but these errors were encountered:
You are testing JSON API in controller specs, but some people say it should be tested in request specs:
http://matthewlehner.net/rails-api-testing-guidelines/
I think this idea is reasonable, so it might be worth moving it to request specs.
The text was updated successfully, but these errors were encountered: