Skip to content
Rails 3 Generators for Cucumber with localized webrat steps
Ruby
Find file
Pull request Compare This branch is 61 commits ahead, 2 commits behind alg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dev_tasks
features
generators
lib
spec
templates
.gitignore
HACKING.rdoc
History.txt
README.rdoc
Rakefile
VERSION
cucumber-rails.gemspec
rvm.yml

README.rdoc

cucumber-rails

Extracted the Rails generators from the Cucumber gem, inspired by this posting on the Cukes Mailing List.

The goal is to provide i18n of the webrat_steps.rb plus some other useful enhancements.

Install

Add it to the Gemfile as follows:

gem "cucumber-rails", :git => "git@github.com:kristianmandrup/cucumber-rails.git"

then:

bundle install

… and you are ready to go.

Usage

Once you install the gem, the generators will be available to all Rails applications on your system. If you run `script/rails generate` (or `script/generate` on Rails 2.x) without any additional arguments you should see the available generators listed.

To run the generator, go to your rails project directory and call it.

Rails 3:

rails g cucumber:skeleton

Rails 2.x:

script/generate cucumber

Included Generators

Rails 3:

  • cucumber:skeleton – Sets up Cucumber in your Rails project

  • cucumber:feature – Generates a skeleton for a new feature

To view the README for each generator, run it with the –help option.

rails g cucumber:skeleton --help
rails g cucumber:feature --help

Rails 2:

  • cucumber – Sets up Cucumber in your Rails project

  • feature – Generates a skeleton for a new feature

To view the README for each generator, run it with the –help option.

script/generate cucumber --help
script/generate feature --help

Tests

This project has tests, but for practical and historical reasons they live in a different project: github.com/aslakhellesoy/cucumber-rails-test/

Something went wrong with that request. Please try again.