josephwilk / cucumber_rails forked from aslakhellesoy/cucumber-rails-test

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

This URL has Read+Write access

name age message
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/
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/
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 aslakhellesoy-webrat rspec rspec-rails

# See available tasks
rake -T cucumber

# Test with e.g Rails 2.2.2
rake cucumber_test:v2.2.2

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

This will use whatever Rails gem you have installed.
If you want to run against the Rails Edge, get the latest Rails in a similar fashion to getting
the latest Cucumber. Then make a symlink from rails to edge_rails and run the tests again.

TODO: Rename to rails and just checkout the tag.