Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails Generators for Cucumber with localized steps for Capybara and Webrat

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 generators
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 cucumber-rails.gemspec
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

gem install cucumber-rails

Usage

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

To run the generator, go to your rails project directory and call it using the script/generate or script/destroy command.

script/generate cucumber

Included Generators

  • 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

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.