public
Fork of aslakhellesoy/cucumber-rails-test
Description: Demo project for Ruby on Rails and Cucumber. Primarily used to test that Cucumber works with RoR.
Homepage:
Clone URL: git://github.com/thillerson/cucumber_rails.git
name age message
file .gitignore Thu Apr 09 17:18:24 -0700 2009 doc update and ignore vim swap files [bmabey]
file .gitmodules Sat Dec 20 11:08:30 -0800 2008 Use latest webrat and cucumber [aslakhellesoy]
file README.textile Loading commit data...
file Rakefile Wed Dec 10 02:32:12 -0800 2008 Blank RoR 2.2.2 project [aslakhellesoy]
directory app/
directory config/
directory db/
directory doc/ Wed Dec 10 02:32:12 -0800 2008 Blank RoR 2.2.2 project [aslakhellesoy]
directory features/
directory lib/
directory log/ Mon Mar 16 10:54:28 -0700 2009 ignore logs [aslakhellesoy]
directory public/ Wed Dec 10 02:32:12 -0800 2008 Blank RoR 2.2.2 project [aslakhellesoy]
directory script/ Wed Dec 10 03:06:46 -0800 2008 Remove accidentally added files [aslakhellesoy]
directory test/ Sun Apr 26 07:52:11 -0700 2009 Added example to illustrate how to use parser d... [aslakhellesoy]
directory vendor/
README.textile

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

Test that Cucumber works with Ruby on Rails

Here is how:

git clone git://github.com/aslakhellesoy/cucumber_rails.git
cd cucumber_rails
git submodule init
git submodule update

# Get the most recent Cucumber - the submodule def might point to an older version
pushd vendor/plugins/cucumber
git checkout master
git pull origin master
popd

# Install gems
sudo gem install webrat rspec rspec-rails

# See available tasks
rake -T cucumber

# Test with e.g Rails 2.2.2 - this will checkout the tagged rails version
rake cucumber_test:v2.2.2:test

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

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.