Permalink
Browse files

Removing old package

  • Loading branch information...
1 parent 794bc59 commit bebd567a49a4d526afcb966c703152be1b5d001f andyw8 committed Nov 13, 2010
Binary file not shown.
Binary file not shown.
@@ -1,11 +0,0 @@
-Manifest
-README.rdoc
-Rakefile
-TODO
-lib/generators/cucumber_scaffold/feature/USAGE
-lib/generators/cucumber_scaffold/feature/feature_generator.rb
-lib/generators/cucumber_scaffold/feature/templates/feature.feature
-lib/generators/cucumber_scaffold/feature/templates/steps.rb
-lib/generators/cucumber_scaffold/install/USAGE
-lib/generators/cucumber_scaffold/install/install_generator.rb
-lib/generators/cucumber_scaffold/install/templates/shared/web_steps_additional.rb
@@ -1,226 +0,0 @@
-== Installation
-
- $ gem install cucumber_scaffold
-
-== Usage
-
- $ rails generate cucumber_scaffold:install
- $ rails generate cucumber_scaffold:feature Post name:string body:text
-
-== Sample Output
-
- # Generated by cucumber_scaffold - http://github.com/andyw8/cucumber_scaffold
-
- Feature: Manage Posts
- In order to [goal]
- [stakeholder]
- wants [behaviour]
-
- @index
- Scenario: List all posts
- Given the following posts:
- | name | body |
- | name 1 | body 1 |
- | name 2 | body 2 |
- | name 3 | body 3 |
- When I go to the posts page
- Then I should see the following posts:
- | Name | Body |
- | name 1 | body 1 |
- | name 2 | body 2 |
- | name 3 | body 3 |
-
- @show
- Scenario: View a post
- Given the following post:
- | name | name 1 |
- | body | body 1 |
- When I go to the page for that post
- Then I should see the following post:
- | Name: | name 1 |
- | Body: | body 1 |
-
- @edit
- Scenario: Edit a post
- Given the following post:
- | name | name 1 |
- | body | body 1 |
- When I go to the edit page for that post
- Then I should see the following form field values:
- | Name | name 1 |
- | Body | body 1 |
-
- @index @destroy
- Scenario: Delete a post via the index page
- Given the following posts:
- | name | body |
- | name 1 | body 1 |
- | name 2 | body 2 |
- | name 3 | body 3 |
- When I go to the posts page
- And I click "Destroy" in the 2nd row
- Then I should see the following posts:
- | Name | Body |
- | name 1 | body 1 |
- | name 3 | body 3 |
- And I should be on the posts page
-
- @new @create @show
- Scenario: Create a new post
- Pending
- # Given I am on the new post page
- # When I fill in the following:
- # | Name | name 1 |
- # | Body | body 1 |
- # And I press "Create"
- # Then I should see "Post was successfully created."
- # And I should see the following post:
- # | Name: | name 1 |
- # | Body: | body 1 |
- #
- # In order to confirm that the user is redirected to the correct page
- # after create, you'll need to add an entry to paths.rb to uniquely
- # find a post, e.g.:
- #
- # when /page for the post with name "([^"]*)"$/
- # conditions = { :conditions => {:name => $1} }
- # matches = Post.all(conditions)
- # if matches.size == 0
- # raise "Could not find any posts using criteria #{conditions.inspect}"
- # elsif matches.size > 1
- # raise "Could not find a unique post using criteria #{conditions.inspect} (#{matches.size} matches)"
- # end
- # post_path(matches.first)
- #
- # Then add a step such as this to the scenario:
- #
- # And I should be on the page for the post with name "..."
-
- @new @create
- Scenario: Attempt to create a new post with invalid input
- Pending
- # You should use this scenario as the basis for scenarios involving ActiveRecord validations, or delete it if it's not required
- # Given I am on the new post page
- # When I fill in the following:
- # | Name | name 1 |
- # | Body | body 1 |
- # And I press "Create"
- # Then I should see "prohibited this post from being saved:"
- #
- # [You should add checks for specific errors here. It may be appropriate to add extra scenarios.]
- #
- # And I should be on the posts page
- # And I should see the following form field values:
- # | Name: | name 1 |
- # | Body: | body 1 |
-
- @edit @update
- Scenario: Attempt to update a post with invalid input
- Pending
- # You should use this scenario as the basis for scenarios involving ActiveRecord validations, or delete it if it's not required
- # Given a post exists
- # When I go to the edit page for that post
- # And I fill in the following:
- # | Name | name 1 |
- # | Body | body 1 |
- # And I press "Update"
- # Then I should see "prohibited this post from being saved:"
- #
- # [You should add checks for specific errors here. It may be appropriate to add extra scenarios.]
- #
- # And I should be on the page for that post
- # And I should see the following form field values:
- # | Name: | name 1 |
- # | Body: | body 1 |
-
- @edit @update @show
- Scenario: Update a post
- Given a post exists
- When I go to the edit page for that post
- And I fill in the following:
- | Name | name 1 updated |
- | Body | body 1 updated |
- And I press "Update"
- Then I should be on the page for that post
- And I should see "Post was successfully updated."
- And I should see the following post:
- | Name: | name 1 updated |
- | Body: | body 1 updated |
-
- @index @new
- Scenario: Navigate from the posts page to the new post page
- Given I am on the posts page
- When I follow "New Post"
- Then I should be on the new post page
-
- @index @show
- Scenario: Navigate from posts page to the show post page
- Given the following posts:
- | name | body |
- | name 1 | body 1 |
- | name 2 | body 2 |
- | name 3 | body 3 |
- When I go to the posts page
- And I click "Show" in the 2nd row
- Then I should be on the page for the 2nd post
-
- @index @edit
- Scenario: Navigate from posts page to the edit post page
- Given the following posts:
- | name | body |
- | name 1 | body 1 |
- | name 2 | body 2 |
- | name 3 | body 3 |
- When I go to the posts page
- And I click "Edit" in the 2nd row
- Then I should be on the edit page for the 2nd post
-
- @new @index
- Scenario: Navigate from new post page to posts page
- Given I am on the new post page
- When I follow "Back"
- Then I should be on the posts page
-
- @edit @show
- Scenario: Navigate from the edit post page to the show post page
- Given a post exists
- When I go to the edit page for that post
- And I follow "Show"
- Then I should be on the page for that post
-
- @edit @index
- Scenario: Navigate from edit post page to the posts page
- Given a post exists
- When I go to the edit page for that post
- And I follow "Back"
- Then I should be on the posts page
-
- @show @edit
- Scenario: Navigate from show post page to edit post page
- Given a post exists
- When I go to the page for that post
- And I follow "Edit"
- Then I should be on the edit page for that post
-
- @show @index
- Scenario: Navigate from show post page to posts page
- Given a post exists
- And I am on the page for that post
- And I follow "Back"
- Then I should be on the posts page
-
- @index
- Scenario: Posts page title
- When I go to the posts page
- Then the heading should be "Listing posts"
-
- @new
- Scenario: New post page title
- When I go to the new post page
- Then the heading should be "New post"
-
- @edit
- Scenario: Edit post page title
- Given a post exists
- When I go to the edit page for that post
- Then the heading should be "Editing post"
@@ -1,13 +0,0 @@
-require 'rubygems'
-require 'rake'
-require 'echoe'
-
-Echoe.new('cucumber_scaffold', '0.1.1') do |p|
- p.description = "Generate scaffolding for Cucumber features and steps definitions"
- p.url = "http://github.com/andyw8/cucumber_scaffold"
- p.author = "Andy Waite"
- p.email = "andy@andywaite.com"
- p.development_dependencies = []
-end
-
-Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
@@ -1,12 +0,0 @@
-* Test with webrat as well as capybara
-* Test with Rails 2.x
-* Test with Formtastic
-* Test with inherited_resources
-* Test with with inherited_resources_views
-* Add support for booleans (checkboxes)
-* Add support for date/time fields
-* Add support for belongs_to associations
-* Test for model names containing more than one word (e.g. DocumentCategory)
-* Add automated test suite
-* Prevent excess whitespace in generated files
-* Better interaction with Pickle
@@ -1,30 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{cucumber_scaffold}
- s.version = "0.1.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
- s.authors = ["Andy Waite"]
- s.date = %q{2010-11-07}
- s.description = %q{Generate scaffolding for Cucumber features and steps definitions}
- s.email = %q{andy@andywaite.com}
- s.extra_rdoc_files = ["README.rdoc", "TODO", "lib/generators/cucumber_scaffold/feature/USAGE", "lib/generators/cucumber_scaffold/feature/feature_generator.rb", "lib/generators/cucumber_scaffold/feature/templates/feature.feature", "lib/generators/cucumber_scaffold/feature/templates/steps.rb", "lib/generators/cucumber_scaffold/install/USAGE", "lib/generators/cucumber_scaffold/install/install_generator.rb", "lib/generators/cucumber_scaffold/install/templates/shared/web_steps_additional.rb"]
- s.files = ["Manifest", "README.rdoc", "Rakefile", "TODO", "lib/generators/cucumber_scaffold/feature/USAGE", "lib/generators/cucumber_scaffold/feature/feature_generator.rb", "lib/generators/cucumber_scaffold/feature/templates/feature.feature", "lib/generators/cucumber_scaffold/feature/templates/steps.rb", "lib/generators/cucumber_scaffold/install/USAGE", "lib/generators/cucumber_scaffold/install/install_generator.rb", "lib/generators/cucumber_scaffold/install/templates/shared/web_steps_additional.rb", "cucumber_scaffold.gemspec"]
- s.homepage = %q{http://github.com/andyw8/cucumber_scaffold}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cucumber_scaffold", "--main", "README.rdoc"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{cucumber_scaffold}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Generate scaffolding for Cucumber features and steps definitions}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end
@@ -1,22 +0,0 @@
-Description:
- Scaffolding for Cucumber features
-
-Example:
-
- rails generate cucumber_scaffold_feature Post title:string body:text
-
- This will create:
- features/manage_posts.rb
- features/step_definitions/post_steps.rb
-
- and will modify:
- features/support/paths.rb
-
-Options:
-
- --nifty
- Generate features and steps which match the scaffold created by nifty-generators
- ( https://github.com/ryanb/nifty-generators )
-
- --tags
- Include Cucumbers @tags matching each scenario to one or more controller actions
Oops, something went wrong.

0 comments on commit bebd567

Please sign in to comment.