-
Recent Posts
Categories
Tags
Meta
Tag Archives: BDD
Resolving Cucumber step ambiguities
Following the latest campaign against imperative Cucumber stories in favour of declarative stories (see especially Dan North’s great article on domain languages), I’ve been trying to get more naturalistic language into my stories. However, it becomes very easy to run … Continue reading
Pong in HTML5 Canvas and YUI3, with tests!
In case you’re one of my clients, you might be wondering why I’ve been slacking off recently. Here’s why: I’ve been teaching myself ‘grown up’ JavaScript under instruction of Douglas Crockford (in book and video form, obviously). Crockford never mentions … Continue reading
CruiseControl.rb rake task for running rspec and cucumber with a single test database
I wrote this rake task for running the rspec and cucumber tests for a Rails app whilst ensuring that only one database is used. It took a bit of Googling and lots of trial and error so thought I’d share … Continue reading
Optimising specs for ActiveRecord scopes and other database-dependent functionality
After recently switching to a lower-performance laptop for my regular development tasks, I decided to spend a bit of time cleaning up some long-running rspec examples. I found that some misunderstanding of rspec’s features had led me to write highly … Continue reading