Skip to content

Commit

Permalink
removed references to rails 3 installation and usage as this is only …
Browse files Browse the repository at this point in the history
…for rails 2.3.x
  • Loading branch information
Kosmas committed Mar 13, 2013
1 parent d9afa25 commit 5c539e5
Showing 1 changed file with 7 additions and 36 deletions.
43 changes: 7 additions & 36 deletions README.rdoc
@@ -1,38 +1,14 @@
= Cucumber-Rails
= Cucumber-Rails2.3.x

Cucumber-Rails brings Cucumber to Rails2 and Rails3. It contains 2 generators - one
Cucumber-Rails2.3.x brings Cucumber to Rails 2.3.x. It contains 2 generators - one
for bootstrapping your Rails app for Cucumber, and a second one for generating features.

Cucumber-Rails also contains Cucumber Step Definitions that wrap Capybara or Webrat,
giving you a head start for writing Cucumber features against your Rails app.

== Installation

=== Rails 3:

Before you can use the generator, add the necessary gems to your project's Gemfile as follows:

gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber', '0.7.2'
gem 'rspec-rails', '2.0.0.beta.8'
gem 'spork'
gem 'launchy' # So you can do Then show me the page

Then install the gems by running:

bundle install

Learn about the various options:

ruby script/rails generate cucumber:install --help

Finally, bootstrap your Rails app, for example:

ruby script/rails generate cucumber:install --rspec --capybara

=== Rails 2.x:
=== Rails 2.3,x:

Before you can use the generator, install the gem by running:

Expand All @@ -51,15 +27,6 @@ Finally, bootstrap your Rails app, for example:
IMPORTANT: Only do this if you are new to Cucumber. We recommend you write your
Cucumber features by hand once you get the hang of it.

=== Rails 3:

Example:

ruby script/rails generate cucumber:feature post title:string body:text published:boolean
ruby script/rails generate scaffold post title:string body:text published:boolean
rake db:migrate
rake cucumber

=== Rails 2:

Example:
Expand All @@ -68,3 +35,7 @@ Example:
ruby script/generate scaffold post title:string body:text published:boolean
rake db:migrate
rake cucumber

=== Rails 3

For Rails 3.x.x use the cucumber-rails master branch instead (https://github.com/cucumber/cucumber-rails)

0 comments on commit 5c539e5

Please sign in to comment.