Mike Gehard's blog



Mike GehardMike Gehard
Testing Resque with Cucumber
edit Posted by Mike Gehard on Wednesday August 18, 2010 at 06:05AM

For some reason the Universe keeps sending great Cucumber related stories to me via Twitter.

Here is another great one from the folks at Square on how to test Resque based functionality via Cucumber:

http://corner.squareup.com/2010/08/cucumber-and-resque.html

Mike GehardMike Gehard
Musings on the use of Cucumber
edit Posted by Mike Gehard on Sunday August 15, 2010 at 08:51AM

I found this article to be quite enlightening about the use of Cucumber , and more specifically the "verbiage" of Cucumber features.

http://elabs.se/blog/15-you-re-cuking-it-wrong

Make sure you read down through the comments as there are some interesting replies from both the people behing Cucumber and Pickle.

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%.

Mike GehardMike Gehard
Rocket powered Cucumber features in Rails3
edit Posted by Mike Gehard on Saturday August 14, 2010 at 12:14PM

Are your Cucumber features that use the @javascript tag slowing you down?

Try adding the following to your Gemfile:

gem 'thin', :group => :test

and see what happens.

Mike GehardMike Gehard
Using RSpec-rails2 to test Rails3 ApplicationController functionality
edit Posted by Mike Gehard on Friday August 06, 2010 at 07:19AM

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.

Other articles: