Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Demo project for Ruby on Rails and Cucumber. Primarily used to test that Cucumber works with RoR.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile

This is a completely bare-bones Rails app that serves one single purpose:

Test that Cucumber works with Ruby on Rails

Here is how:

# Install gems
sudo gem install webrat rspec rspec-rails
git clone git://
cd cucumber-rails-test

The default task will vendor copies of Rails and Cucumber the first time it is run,
and pull changes after that. If you’d like to start fresh, just delete the vendor/rails
and vendor/plugins/cucumber directories and run rake again.

To Test with a specific version of Rails, e.g. 2.2.2:

# Make sure you have a vendored copy of Rails and Cucumber
rake cucumber_test:update
rake cucumber_test:v2.2.2:test
# Test with Spork:
CUCUMBER_GENERATE_OPTS=--spork rake cucumber_test:v2.2.2:test

If it’s green, everything is OK. If not, you should see red.

To see a list of all available testing tasks, run rake -T cucumber_test

Adding new features

The cucumber_test:* tasks will REVERT ALL LOCAL CHANGES when run. Therefore, if you’re modifying things, I recommend you don’t run this task, but rake features instead. Then MAKE SURE YOU ADD AND COMMIT the files you changed before you run any of the cucumber_test:* tasks again. Make sure you don’t add too much. The files that are generated should not be added to Git.

Something went wrong with that request. Please try again.