diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-05-19 01:44:05 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-05-19 01:44:05 -0700 |
commit | 4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2 (patch) | |
tree | 9e9953b6240efe270603a19151d91c9c8a0508dc /spec/unit/config_spec.rb | |
parent | a125c8a450c4368bfdb1668679dd7153d53757c6 (diff) | |
download | chef-4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2.tar.gz |
Working on network layer
Diffstat (limited to 'spec/unit/config_spec.rb')
-rw-r--r-- | spec/unit/config_spec.rb | 6 |
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 |