features/fig_newton.feature in fig_newton-0.2 vs features/fig_newton.feature in fig_newton-0.3
- old
+ new
@@ -8,9 +8,14 @@
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"