Joined April 2013
·
Posted to
Test count of association, not class
over 1 year
ago
If you've scoped your controllers to only return Widgets owned by the current user, an integration test should pick up a failure. But, then again, you should probably have authorization tests for that, and this definitely works in a unit test. Great tip!
Achievements
88 Karma
0 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Mongoose
Have at least one original repo where Ruby is the dominant language
Raven
Have at least one original repo where some form of shell script is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Also, no need to assign the server instance (you can forego the
s=...
bit.