Sha256: e6a747202aa2fe30fe688108efb42dc686d42c5fa06ae9f4bb868f37e2a42558

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

Feature: Functionality of the fig_newton gem

  Scenario: Getting basic configuration data from a yml config file
    Given I have read the configuration file
    When I ask for the value for "base_url"
    Then I should see "http://cheezyworld.com"

  Scenario: Requesting data that does not exist should result in error
    Given I have read the configuration file
    When I ask for a value that does not exist named "does_not_exist"
    Then I should raise a NoMethodError exception
    
  Scenario: Getting the default filename from an environment variable
    Given I have an environment variable named "FIG_NEWTON_FILE" set to "sample.yml"
    When I ask for the value for "from_the_env_file"
    Then I should see "read from the env file"
    
  Scenario: Requesting data that contains a node of additional data
    Given I have read the configuration file
    When I ask for the value for "database"
    Then I should have a node
    And the "username" value for the node should be "steve"
    And the "password" value for the node should be "secret"

  Scenario: Requesting data from multiple nested data
    Given I have read the configuration file
    When I ask for the value for "first"
    And I ask for the node value for "second"
    Then the "third" value for the node should be "foo"
    And the "fourth" value for the node should be "bar"

  Scenario: Using default directory and file
    Given I have read the default file from the default directory
    When I ask for the value for "base_url"
    Then I should see "http://cheezyworld.com"
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fig_newton-0.5 features/fig_newton.feature
fig_newton-0.4 features/fig_newton.feature