This is a port of Cheezy's recent Watir labs (Blog, Repo) to Capybara.
To run the web tests, you'll need to first be running a local instance of the Depot application from the (pre-Rails 3 edition of the) AWDWR book.
The Depot source is available here. If you're on OS X, you should be able to run this embarrasingly long command to download the Depot app and run it:
curl http://media.pragprog.com/titles/rails3/code/rails3-code.tgz > code.tgz && tar xvf code.tgz && cd code/depot_t && mkdir log && touch log/devopment.log && rake db:migrate && script/server
From your browser, hit http://localhost:3000/store to verify that the app is running.
First, if you don't have it, you'll want to install Bundler.
gem install bundler
Now, to execute the feature, change into the directory containing this project and run:
bundle install
bundle exec cucumber
If all goes well, the feature's scenarios will all pass and you'll be able to dig into the code.