Brightbox
  • Home
  • Pricing & Sign up
  • Why Brightbox?
  • Products & Services
  • FAQs
  • About
  • Blog
  • Wiki
  • Contact
Blog RSS feed
POSTED BY

Rahoul Baruah

rahoul@brightbox.co.uk

twitter_banner

Recent Posts

  • Ubuntu 12.04 LTS “Precise” now available
  • Ubuntu 12.04 LTS "Precise" beta testing
  • Another Rails JSON security bug
  • Rails JSON and XML security bugs
  • Rails SQL injection vulnerability

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!

Posted 21 November 2008 by Rahoul Baruah

behaviour driven development+ cucumber+ features+ rails+ rspec+ software development+ test driven development+ user stories

3 Comments

  1. 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 [...]

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

  3. 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… [...]

Comments are now closed.


Recent blog posts

  • Ubuntu 12.04 LTS “Precise” now available
    about 1 month ago
  • Ubuntu 12.04 LTS “Precise” beta testing
    2 months ago
  • Another Rails JSON security bug
    4 months ago
  • Rails JSON and XML security bugs
    5 months ago
  • Rails SQL injection vulnerability
    5 months ago
  • New Relic Agent vulnerability
    6 months ago

Join our email list

Flickr (more...)

RSS feeds

Blog feed

Flickr feed

Recent Wiki updates

System Status feed




Wiki | Forums | Terms & Conditions | Privacy | Site Map

Copyright © 2011 Brightbox Systems Ltd. All rights reserved