Sha256: 382db59076cc0991955332fcf8c38fed61d6abe46c8fa5b77b564624781b07fe

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

Feature: RubyGems have features to be described and tested

  As a RubyGem developer
  I want to describe the project"s features using Cucumber
  So that I can describe each feature of the project in readable text
  
  Scenario: Install Cucumber into a RubyGem
    Given default env variables setup for name and email
    And an existing newgem scaffold [called "my_project"]
    When I invoke "install_cucumber" generator with arguments ""
    Then folder "features/step_definitions" is created
    Then folder "features/support" is created
    And file "features/development.feature" is created
    And file "features/support/env.rb" is created
    And file "features/support/common.rb" is created
    And file "features/support/matchers.rb" is created
    And file "features/step_definitions/common_steps.rb" is created
    And file "tasks/cucumber.rake" is not created as it is loaded via newgem itself

  Scenario: NewGem and generated gems should share some common files
    Given default env variables setup for name and email
    And an existing newgem scaffold [called "my_project"]
    When I invoke "install_cucumber" generator with arguments ""
    Then gem file "features/step_definitions/common_steps.rb" and generated file "features/step_definitions/common_steps.rb" should be the same
    Then gem file "features/support/common.rb" and generated file "features/support/common.rb" should be the same
    Then gem file "features/support/matchers.rb" and generated file "features/support/matchers.rb" should be the same
    Then gem file "features/development.feature" and generated file "features/development.feature" should be the same

  Scenario: Installed Cucumber includes a "rake features" task
    Given an existing newgem scaffold [called "my_project"]
    And I invoke "install_cucumber" generator with arguments ""
    And I invoke task "rake manifest"
    When I invoke task "rake features"
    Then task "rake features" is executed successfully
    And I should see
      """
      ......
      """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newgem-1.4.0 features/install_cucumber.feature
newgem-1.4.1 features/install_cucumber.feature