diff options
author | PrajaktaPurohit <prajakta@opscode.com> | 2012-12-11 18:45:18 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@opscode.com> | 2012-12-19 15:56:13 -0800 |
commit | 217cf85876651185b33fb574de7256e5a499d499 (patch) | |
tree | 8ba0f7a4d3addb24a38c160759731776e786120f /spec/functional/win32 | |
parent | 4bd6fb95f37f94402a8a5200e2018f36df5ca146 (diff) | |
download | chef-217cf85876651185b33fb574de7256e5a499d499.tar.gz |
Fixing tests as per changed code
Diffstat (limited to 'spec/functional/win32')
-rw-r--r-- | spec/functional/win32/registry_helper_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/functional/win32/registry_helper_spec.rb b/spec/functional/win32/registry_helper_spec.rb index bbd53bf8e4..830d6f4777 100644 --- a/spec/functional/win32/registry_helper_spec.rb +++ b/spec/functional/win32/registry_helper_spec.rb @@ -627,22 +627,6 @@ describe 'Chef::Win32::Registry', :windows_only do end end - describe "create_value" do - it "can create a 32-bit only registry value" do - @registry.architecture = :i386 - @registry.create_value("HKLM\\Software\\Root\\Trunk\\Red", {:name=>"Buds", :type=>:string, :data=>"Closed"}).should == true - @registry.data_exists?("HKLM\\Software\\Root\\Trunk\\Red", {:name=>"Buds", :type=>:string, :data=>"Closed"}).should == true - @registry.architecture = :x86_64 - lambda{@registry.data_exists?("HKLM\\Software\\Root\\Trunk\\Red", {:name=>"Buds", :type=>:string, :data=>"Closed"})}.should raise_error(Chef::Exceptions::Win32RegKeyMissing) - end - it "can create a 64-bit only registry value" do - @registry.architecture = :x86_64 - @registry.create_value("HKLM\\Software\\Root\\Trunk\\Blue", {:name=>"Peter", :type=>:string, :data=>"Tiny"}).should == true - @registry.data_exists?("HKLM\\Software\\Root\\Trunk\\Blue", {:name=>"Peter", :type=>:string, :data=>"Tiny"}).should == true - @registry.architecture = :i386 - lambda{@registry.data_exists?("HKLM\\Software\\Root\\Trunk\\Blue", {:name=>"Peter", :type=>:string, :data=>"Tiny"})}.should raise_error(Chef::Exceptions::Win32RegKeyMissing) - end - end end end end |