GitHub User: dreamr
BTW, Ryan, whats up with the end of the video. You started to answer the question of whether or not this will move you off of rspec.
I did the switch awhile back from rspec to riotrb, and got so used to fast tests, I dumped rspec altogether. Then I dumped riotrb for minispec.
Havent looked back
Don't test rails internals. Instead do something like
it "must have a products collection" do
@topic.products.size.must_be :>=, 1
In these assertions you verify:
Always test the expected result, and not the internal mechanisms. Test API and you will find that many of your testing issues vanish.
If you dont want a framework and community with a gold standard you are free to go back to Java or PHP. Like it or not, Rails came up HUGE (and drug Ruby along with it) because DHH, and later the core teams decided on opinionated software. The Golden Path is what separates good rails code from bad more times then not.
For instance, you can jump around just about any auth plugin or roll your own. But if you dont include common idioms for rails authentication it will be unusable by most coders or gems. Do I think current_user is the best helper method name for this? Maybe, maybe not. But I am not going to start rolling my auth modules with anything else. Thank god for Golden Paths.