summaryrefslogtreecommitdiff
path: root/spec/unit/config_spec.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-05-19 01:44:05 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-05-19 01:44:05 -0700
commit4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2 (patch)
tree9e9953b6240efe270603a19151d91c9c8a0508dc /spec/unit/config_spec.rb
parenta125c8a450c4368bfdb1668679dd7153d53757c6 (diff)
downloadchef-4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2.tar.gz
Working on network layer
Diffstat (limited to 'spec/unit/config_spec.rb')
-rw-r--r--spec/unit/config_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index 5d74e83249..543a7caa13 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -84,4 +84,10 @@ describe Chef::Config do
lambda { Chef::Config[:snob_hobbery] }.should raise_error(ArgumentError)
end
+ it "should return true or false with has_key?" do
+ Chef::Config.has_key?(:monkey).should eql(false)
+ Chef::Config[:monkey] = "gotcha"
+ Chef::Config.has_key?(:monkey).should eql(true)
+ end
+
end \ No newline at end of file