summaryrefslogtreecommitdiff
path: root/spec/functional/resource/registry_spec.rb
diff options
context:
space:
mode:
authorPrajaktaPurohit <prajakta@opscode.com>2012-11-30 14:02:51 -0800
committerLamont Granquist <lamont@opscode.com>2012-12-19 15:56:08 -0800
commitbde8b49f9e1501a21ef77ccf991f6b76ace86969 (patch)
treead2149a7e396807f19135139afed304731500b1d /spec/functional/resource/registry_spec.rb
parent3b06f3a82cf4270e100862ca9ae213a15b8c4dd8 (diff)
downloadchef-bde8b49f9e1501a21ef77ccf991f6b76ace86969.tar.gz
Adding whyrun support to the registry provider
Diffstat (limited to 'spec/functional/resource/registry_spec.rb')
-rw-r--r--spec/functional/resource/registry_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb
index c4bc418ba8..360d9ec451 100644
--- a/spec/functional/resource/registry_spec.rb
+++ b/spec/functional/resource/registry_spec.rb
@@ -85,10 +85,12 @@ describe Chef::Resource::RegistryKey, :windows_only do
@registry.data_exists?("HKCU\\Software\\Opscode", {:name=>"Color", :type=>:string, :data=>"Not just Orange - OpscodeOrange!"}).should == true
end
- it "gives an error if the key and value exist and the type does not match" do
+ it "modifys the type if the key and value exist and the type does not match" do
@resource.key("HKCU\\Software\\Opscode")
@resource.values([{:name=>"Color", :type=>:multi_string, :data=>["Not just Orange - OpscodeOrange!"]}])
- lambda{@resource.run_action(:create)}.should raise_error(Chef::Exceptions::Win32RegTypesMismatch)
+ @resource.run_action(:create)
+
+ @registry.data_exists?("HKCU\\Software\\Opscode", {:name=>"Color", :type=>:multi_string, :data=>["Not just Orange - OpscodeOrange!"]}).should == true
end
it "creates subkey if parent exists" do