-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example of expect(response).to have_http_status(:status_code_name) #10
Comments
Try to get this syntax or similar into request specs too so they're not full of magic numbers |
Consider adding |
Neat, I didn't know about Some other options you can consider for controller and request specs to avoid magic numbers
|
Thanks for the tips @dideler - especially like |
WIP: |
Closed by #96 |
Example of using
have_http_status
methodSource: RSpec Controller Specs cheatsheet
The text was updated successfully, but these errors were encountered: