Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

aslakhellesoy/cucumber-rails-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published