Using RSpec, Cucumber and User stories to build our internal systems 21 Nov 08
Here at Brightbox we are making heavy use of RSpec and Cucumber as we develop our next generation internal systems. These let us write specifications, in English and in code, for how the systems should behave. The specifications document the system for future reference and provide an automated test suite to prove that things are working as they should.
We chose RSpec because of its philosophy of “getting the words right”; code is often easier to write than it is read. As these specifications are also our internal documentation they must be easy to read as well.
However, as some of this Behaviour-Driven and Story-Driven development is pretty new, there isn’t much guidance on best practice, especially when it comes to the “User Stories” (which form the basis of the system’s acceptance tests). With that in mind, we thought we’d share our basic process we follow for each new feature.
(Download the original presentation here)
By the way, there’s a very subtle bug in the code; no prizes if you spot it!

4 years ago 3hv » Blog Archive » Acceptance Testing in Ruby, Rails, RSpec and Cucumber said:
[...] written up a new post at the Brightbox blog detailing how we are using RSpec and Cucumber to build acceptance tests for the next generation [...]
4 years ago Baz said:
By the way the stuff referenced in the presentation has now moved to the Brightbox github account.
The rspec-rails extensions are at http://github.com/brightbox/rspec-rails-extensions/tree/master
The object-factory is at http://github.com/brightbox/object-factory/tree/master
4 years ago Ennuyer.net » Blog Archive » I am way behind on my rails link blogging. Link dump and reboot. said:
[...] Brightbox Blog – Ruby on Rails Hosting – Using RSpec, Cucumber and User stories to build our intern… [...]