Sha256: 4901b9e183e9d5b6262690f9026d47b65843748f17760cff0a6af87acd24adec

Contents?: true

Size: 1.87 KB

Versions: 5

Compression:

Stored size: 1.87 KB

Contents

Feature: Support for multiple configuration files
  In order to quickly change between different configurations
  As a chemistry kit harness developer
  I want to specify different configuration files on the command line

  Background:
    Given I run `ckit new config-test`
    And I cd to "config-test"
    And a file named "beakers/test_beaker.rb" with:
    """
    describe "Cheese", :depth => 'shallow' do
      it "loads an external web page" do
        @driver.get "http://www.google.com"
        @driver.title.should include("Google")
      end
    end
    """
  Scenario: The default will be conifg.yaml
    Given a directory named "evidence_config"
    When I overwrite config.yaml with:
      """
      selenium_connect:
          log: 'evidence_config'
          host: 'localhost'
      """
    When I run `ckit brew`
    Then the stdout should contain "1 example, 0 failures"
    And the following files should exist:
      | evidence_config/server.log       |

  Scenario: I can specifiy an alternative configuration with --config
    Given a directory named "evidence_alternate"
    And a file named "alternate.yaml" with:
      """
      selenium_connect:
          log: 'evidence_alternate'
          host: 'localhost'
      """
      When I run `ckit brew --config alternate.yaml`
      Then the stdout should contain "1 example, 0 failures"
      And the following files should exist:
        | evidence_alternate/server.log       |

  Scenario: I can specifiy an alternative configuration with -c
    Given a directory named "evidence_alternate"
    And a file named "alternate.yaml" with:
      """
      selenium_connect:
          log: 'evidence_alternate'
          host: 'localhost'
      """
      When I run `ckit brew -c alternate.yaml`
      Then the stdout should contain "1 example, 0 failures"
      And the following files should exist:
        | evidence_alternate/server.log       |

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chemistrykit-3.3.0 features/multi-config.feature
chemistrykit-3.2.0 features/multi-config.feature
chemistrykit-3.1.0 features/multi-config.feature
chemistrykit-3.0.1 features/multi-config.feature
chemistrykit-3.0.0 features/multi-config.feature