diff options
author | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2016-04-21 13:26:30 -0400 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2016-04-25 12:04:09 -0400 |
commit | 2034305917a76d4c203e457a9ebf61d28819ccbd (patch) | |
tree | d43562f4902ab0db80b4178ffefbdff825f4d66f /spec/functional/win32/registry_spec.rb | |
parent | d5039e38977b9da431fcb52670576561d772aa27 (diff) | |
download | chef-2034305917a76d4c203e457a9ebf61d28819ccbd.tar.gz |
Too much log output and unnecessary warnings! Suppress that shit.
Diffstat (limited to 'spec/functional/win32/registry_spec.rb')
-rw-r--r-- | spec/functional/win32/registry_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/win32/registry_spec.rb b/spec/functional/win32/registry_spec.rb index 4f9b742503..4a6157a6d5 100644 --- a/spec/functional/win32/registry_spec.rb +++ b/spec/functional/win32/registry_spec.rb @@ -243,7 +243,7 @@ describe "Chef::Win32::Registry", :windows_only do end it "throws an exception when trying to cast an array to an int for a dword" do - expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldThrow", :type => :dword, :data => %w{one two} }) }.to raise_error + expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldThrow", :type => :dword, :data => %w{one two} }) }.to raise_error NoMethodError end # we are validating that the data gets .to_s called on it when type is a :string @@ -261,11 +261,11 @@ describe "Chef::Win32::Registry", :windows_only do # we are validating that the data gets .to_a called on it when type is a :multi_string it "throws an exception when a multi-string is passed a number" do - expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldThrow", :type => :multi_string, :data => 65535 }) }.to raise_error + expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldThrow", :type => :multi_string, :data => 65535 }) }.to raise_error NoMethodError end it "throws an exception when a multi-string is passed a string" do - expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldBeWat", :type => :multi_string, :data => "foo" }) }.to raise_error + expect { @registry.set_value("HKCU\\Software\\Root\\Branch\\Flower", { :name => "ShouldBeWat", :type => :multi_string, :data => "foo" }) }.to raise_error NoMethodError end end |