Skip to content

HTTPS clone URL

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.
Ruby
branch: master
Failed to load latest commit information.
app Add feature to reproduce cucumber-rails #2. Works for me.
config Make everything run with JRuby too
db/migrate Oops added wrong file
doc Blank RoR 2.2.2 project
features Add feature to reproduce cucumber-rails #2. Works for me.
lib Use aslakhellesoy/cucumber-rails
log ignore logs
public Blank RoR 2.2.2 project
script Remove accidentally added files
test Added example to illustrate how to use parser directly. Did it in a R…
vendor Gitignore vendor/rails and vendor/plugins/cucumber so git clean -d -f…
.gitignore
README.textile Installing cucumber-rails gem is not a prerequisite
Rakefile Blank RoR 2.2.2 project

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:

# Install gems
sudo gem install webrat rspec rspec-rails
git clone git://github.com/aslakhellesoy/cucumber-rails-test.git
cd cucumber-rails-test
rake

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.