features/fig_newton.feature in fig_newton-0.6 vs features/fig_newton.feature in fig_newton-0.7
- old
+ new
@@ -13,10 +13,16 @@
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: Using a file that has the same name as the hostname
+ Given I have a yml file that is named after the hostname
+ When I ask for the value for "from_the_hostname_file"
+ Then I should see "read from the hostname file"
+ And I should remove the 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"
@@ -36,5 +42,15 @@
Scenario: Requesting a numerical value
Given I have read the configuration file
When I ask for the value for "port"
Then I should see 1234
+
+ Scenario: Requesting data from a node can be converted to a hash
+ Given I have read the configuration file
+ When I ask for the value for "database"
+ Then I should have a node
+ And the hash of values should look like:
+ | username | steve |
+ | password | secret |
+
+