diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-28 15:42:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 15:42:58 -0700 |
commit | eb509e6714922d1653b106bbfc7d0a7b7b2f0c5a (patch) | |
tree | 400c1738c6b080416a1df542645b0efcb7d498c8 /spec | |
parent | 2151d6d435f6169ca41dc1f96324a3585ff22e06 (diff) | |
parent | b77f792abb7753208b0f1c23af3a84b024a6ccf8 (diff) | |
download | chef-eb509e6714922d1653b106bbfc7d0a7b7b2f0c5a.tar.gz |
Merge pull request #7079 from chef/case_insensitve_dism
windows_feature_dism: Be case insensitive with feature names
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/windows_feature_dism.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/resource/windows_feature_dism.rb b/spec/unit/resource/windows_feature_dism.rb index 1004b75ba9..4f973f7e82 100644 --- a/spec/unit/resource/windows_feature_dism.rb +++ b/spec/unit/resource/windows_feature_dism.rb @@ -29,17 +29,17 @@ describe Chef::Resource::WindowsFeatureDism do end it "sets the feature_name property as its name property" do - expect(resource.feature_name).to eql(%w{SNMP DHCP}) + expect(resource.feature_name).to eql(%w{snmp dhcp}) end - it "coerces comma separated lists of features to arrays" do + it "coerces comma separated lists of features to a lowercase array" do resource.feature_name "SNMP, DHCP" - expect(resource.feature_name).to eql(%w{SNMP DHCP}) + expect(resource.feature_name).to eql(%w{snmp dhcp}) end - it "coerces a single feature as a String into an array" do + it "coerces a single feature as a String to a lowercase array" do resource.feature_name "SNMP" - expect(resource.feature_name).to eql(["SNMP"]) + expect(resource.feature_name).to eql(["snmp"]) end it "supports :install, :remove, and :delete actions" do |