I’ve always gotten that “not so fresh” feeling when including CSS selectors in my Cucumber features and now I have a reason why.
This article becomes really important if you start to have your clients define their Tracker stories as Cucumber features, something I am toying with right now. Just think of how much development time you could save if all you needed to do was copy/paste a feature from Tracker into a feature file. Sure it may never happen 100% of the time but even if it only 10% of the time it is still more than 0%.
Try adding the following to your Gemfile:
gem 'thin', :group => :test
and see what happens.
The other day I was looking to test some rescue_from functionality in a subclass of ApplicationController and found an easy way to set this up, the controller() method.
Note: Testing of ApplicationController subclasses is a new addition and not available in a released beta of rspec-rails2 as of the writing of this post.