summaryrefslogtreecommitdiff
path: root/features/mixlib_config.feature
diff options
context:
space:
mode:
authorChristopher Brown <cb@opscode.com>2009-08-26 12:53:57 -0700
committerChristopher Brown <cb@opscode.com>2009-08-26 12:53:57 -0700
commit4804a909ab7b7d1a8f290869ed09ccf5f330f2bf (patch)
tree1f0cd0ecdf010393c9d7667f8f4e06dff6a37d81 /features/mixlib_config.feature
parentfa4bdd1a6b39c7dc4be804d6c871d28a552afbcc (diff)
parent89b9dac377a441acd9c41b15482320ffcb03779e (diff)
downloadmixlib-config-class_instance_variable.tar.gz
integrate nuo's class instance variable with attribute setter changesclass_instance_variable
Diffstat (limited to 'features/mixlib_config.feature')
-rw-r--r--features/mixlib_config.feature14
1 files changed, 11 insertions, 3 deletions
diff --git a/features/mixlib_config.feature b/features/mixlib_config.feature
index 6defc7a..35432b7 100644
--- a/features/mixlib_config.feature
+++ b/features/mixlib_config.feature
@@ -4,12 +4,20 @@ Feature: Configure an application
I want to utilize a simple configuration object
Scenario: Set a configuration option to a string
- Given a configuration class
- When I set 'foo' to 'bar'
+ Given a configuration class 'ConfigIt'
+ When I set 'foo' to 'bar' in configuration class 'ConfigIt'
Then config option 'foo' is 'bar'
+
+Scenario: Set the same configuration option to different strings for two configuration classes
+ Given a configuration class 'ConfigIt'
+ And a configuration class 'ConfigItToo'
+ When I set 'foo' to 'bar' in configuration class 'ConfigIt'
+ And I set 'foo' to 'bar2' in configuration class 'ConfigItToo'
+ Then in configuration class 'ConfigItToo' config option 'foo' is 'bar2'
+ And in configuration class 'ConfigIt' config option 'foo' is 'bar'
Scenario: Set a configuration option to an Array
- Given a configuration class
+ Given a configuration class 'ConfigIt'
When I set 'foo' to:
|key|
|bar|