I watched through Ben’s ‘TDD in Rails’ video, and found it very informative - as well as encouraging that my mentalities in testing aren’t off kilter.
One thing I wasn’t sure about - is when he runs his specs going through his TDD process - You can see that the specs fail for “Rails reasons” - meaning that it fails because he’s missing a controller, controller action, view template, etc. Here’s a screenshot: bit.ly/1bRtoMo
Recently I’ve gone through a similar process. Fresh Rails 4.0.2 app with rspec/capybara - and was going through the same outside-in approach that he describes.
The problem that I’ve had, though, is that I can’t get the specs to fail for those same Rails reasons - they instead fail because missing markup on the view template (which, makes sense because if the controller doesn’t exist - there’s no action to render the view that has the markup, etc).
Here’s a screenshot: bit.ly/LoM2E9
I’ve watched the video over, and can’t find anything special that he did to output those errors, nor could I find anything on stack overflow that wouldn’t require me to monkey patch something.
Am I missing something?