Skip to content

Commit

Permalink
Removed the feature generator
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Oct 3, 2011
1 parent f027440 commit b1698f1
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 165 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cucumber-rails (1.1.0)
cucumber-rails (1.1.1)
capybara (>= 1.1.1)
cucumber (>= 1.1.0)
nokogiri (>= 1.5.0)
Expand Down
7 changes: 7 additions & 0 deletions History.md
@@ -1,3 +1,10 @@
## [v1.1.0](https://github.com/cucumber/cucumber-rails/compare/v1.1.0...v1.1.1)

### Removed features

The `cucumber:feature` generator has been removed. The reasoning behind this is the same as for
removing `web_steps.rb`, `paths.rb` and `selectors.rb` in v1.1.0.

## [v1.1.0](https://github.com/cucumber/cucumber-rails/compare/v1.0.6...v1.1.0)

### Removed features
Expand Down
18 changes: 0 additions & 18 deletions README.md
Expand Up @@ -4,12 +4,6 @@

Cucumber-Rails brings Cucumber to Rails 3.x. For Rails 2x support, see the [Cucumber Wiki](https://github.com/cucumber/cucumber/wiki/Ruby-on-Rails).

Cucumber-Rails 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,
giving you a head start for writing Cucumber features against your Rails app.

## Installation

Before you can use the generator, add the gem to your project's Gemfile as follows:
Expand All @@ -32,18 +26,6 @@ Finally, bootstrap your Rails app, for example:

rails generate cucumber:install

## Generating a Cucumber feature

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.

Example:

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

## Running Cucumber

With Rake:
Expand Down
2 changes: 1 addition & 1 deletion cucumber-rails.gemspec
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)

Gem::Specification.new do |s|
s.name = 'cucumber-rails'
s.version = '1.1.0'
s.version = '1.1.1'
s.authors = ["Aslak Hellesøy", "Dennis Blöte", "Rob Holland"]
s.description = "Cucumber Generators and Runtime for Rails"
s.summary = "#{s.name}-#{s.version}"
Expand Down
6 changes: 2 additions & 4 deletions features/inspect_query_string.feature
Expand Up @@ -2,8 +2,6 @@ Feature: Inspect query string

Scenario: Inspect query string
Given I have created a new Rails 3 app "rails-3-app" with cucumber-rails support
And I successfully run `rails generate cucumber:feature post title:string body:text number:integer published:boolean`
And I successfully run `rails generate scaffold post title:string body:text number:integer published:boolean`
And I successfully run `rails generate scaffold cuke name:string`
And I overwrite "app/controllers/cukes_controller.rb" with:
"""
Expand Down Expand Up @@ -31,7 +29,7 @@ Feature: Inspect query string
And I run `bundle exec rake cucumber`
Then it should pass with:
"""
3 scenarios (3 passed)
16 steps (16 passed)
1 scenario (1 passed)
3 steps (3 passed)
"""

16 changes: 0 additions & 16 deletions lib/generators/cucumber/feature/USAGE

This file was deleted.

27 changes: 0 additions & 27 deletions lib/generators/cucumber/feature/feature_generator.rb

This file was deleted.

19 changes: 0 additions & 19 deletions lib/generators/cucumber/feature/named_arg.rb

This file was deleted.

63 changes: 0 additions & 63 deletions lib/generators/cucumber/feature/templates/feature.erb

This file was deleted.

14 changes: 0 additions & 14 deletions lib/generators/cucumber/feature/templates/steps.erb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/generators/cucumber/install/USAGE
Expand Up @@ -4,8 +4,6 @@ Description:

This also generates the necessary files in the features directory.

Also see the cucumber:feature generator.

Examples:
`rails generate cucumber:install`

Expand Down

0 comments on commit b1698f1

Please sign in to comment.