Sha256: 46f89a8b922e99a9334da08986b1dedd1e125128118c1b5a39616ab7ac480c74

Contents?: true

Size: 1.4 KB

Versions: 79

Compression:

Stored size: 1.4 KB

Contents

Feature: Post Configuration Hook [#423]

  In order to extend Cucumber
  As a developer
  I want to manipulate the Cucumber configuration after it has been created

  Scenario: Using options directly gets a deprecation warning

    Given a standard Cucumber project directory structure
    And a file named "features/support/env.rb" with:
      """
      AfterConfiguration do |config|
        config.options[:blah]
      end
      """
    When I run cucumber features
    Then STDERR should match
      """
      Deprecated
      """

    Given a standard Cucumber project directory structure
    And a file named "features/support/env.rb" with:
      """
      AfterConfiguration do |config|
        config.formats << ['html', config.out_stream]
      end
      """
    When I run cucumber features
    Then STDERR should be empty
    And the output should contain
      """
      html
      """

  Scenario: feature directories read from configuration

    Given a standard Cucumber project directory structure
    And a file named "features/support/env.rb" with:
      """
      AfterConfiguration do |config|
        config.out_stream << "AfterConfiguration hook read feature directories: #{config.feature_dirs.join(', ')}" 
      end
      """
    When I run cucumber features
    Then STDERR should be empty
    And the output should contain
      """
      AfterConfiguration hook read feature directories: features
      """

Version data entries

79 entries across 77 versions & 11 rubygems

Version Path
cucumber-1.3.3 legacy_features/post_configuration_hook.feature
cucumber-1.3.2 legacy_features/post_configuration_hook.feature
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/post_configuration_hook.feature
cucumber-1.3.1 legacy_features/post_configuration_hook.feature
cucumber-1.3.0 legacy_features/post_configuration_hook.feature
cucumber-1.2.5 legacy_features/post_configuration_hook.feature
cucumber-1.2.3 legacy_features/post_configuration_hook.feature
cucumber-1.2.2 legacy_features/post_configuration_hook.feature
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/post_configuration_hook.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/legacy_features/post_configuration_hook.feature
casecumber-1.0.2.1 legacy_features/post_configuration_hook.feature
casecumber-1.2.1.cb2 legacy_features/post_configuration_hook.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/legacy_features/post_configuration_hook.feature
cucumber-1.2.1 legacy_features/post_configuration_hook.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/post_configuration_hook.feature
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/legacy_features/post_configuration_hook.feature
cucumber-1.2.0 legacy_features/post_configuration_hook.feature
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/post_configuration_hook.feature
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/post_configuration_hook.feature
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/post_configuration_hook.feature