diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 09:18:16 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 09:18:16 -0800 |
commit | 812101f11a6c33e49f401ad72598ca6ffb38adc4 (patch) | |
tree | bab654bbd8d6310d46c0f1787691133a2b6bb743 /spec/unit/cookbook | |
parent | c7194aea7c145b94c46a97dd3f218aff1b0116c2 (diff) | |
parent | c844e1c87374b18ee634a06a5325518631607c90 (diff) | |
download | chef-812101f11a6c33e49f401ad72598ca6ffb38adc4.tar.gz |
Merge pull request #4381 from chef/lcg/useless-to-s
chefstyle: fix Lint/StringConversionInInterpolation
Diffstat (limited to 'spec/unit/cookbook')
-rw-r--r-- | spec/unit/cookbook/metadata_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/cookbook/metadata_spec.rb b/spec/unit/cookbook/metadata_spec.rb index fbd07f7e69..633632b58c 100644 --- a/spec/unit/cookbook/metadata_spec.rb +++ b/spec/unit/cookbook/metadata_spec.rb @@ -891,31 +891,31 @@ describe Chef::Cookbook::Metadata do :suggestions, :conflicting, :replacing].each do |to_check| - it "should transform deprecated greater than syntax for :#{to_check.to_s}" do + it "should transform deprecated greater than syntax for :#{to_check}" do @hash[to_check.to_s]["foo::bar"] = ">> 0.2" deserial = Chef::Cookbook::Metadata.from_hash(@hash) expect(deserial.send(to_check)["foo::bar"]).to eq('> 0.2') end - it "should transform deprecated less than syntax for :#{to_check.to_s}" do + it "should transform deprecated less than syntax for :#{to_check}" do @hash[to_check.to_s]["foo::bar"] = "<< 0.2" deserial = Chef::Cookbook::Metadata.from_hash(@hash) expect(deserial.send(to_check)["foo::bar"]).to eq('< 0.2') end - it "should ignore multiple dependency constraints for :#{to_check.to_s}" do + it "should ignore multiple dependency constraints for :#{to_check}" do @hash[to_check.to_s]["foo::bar"] = [ ">= 1.0", "<= 5.2" ] deserial = Chef::Cookbook::Metadata.from_hash(@hash) expect(deserial.send(to_check)["foo::bar"]).to eq([]) end - it "should accept an empty array of dependency constraints for :#{to_check.to_s}" do + it "should accept an empty array of dependency constraints for :#{to_check}" do @hash[to_check.to_s]["foo::bar"] = [] deserial = Chef::Cookbook::Metadata.from_hash(@hash) expect(deserial.send(to_check)["foo::bar"]).to eq([]) end - it "should accept single-element arrays of dependency constraints for :#{to_check.to_s}" do + it "should accept single-element arrays of dependency constraints for :#{to_check}" do @hash[to_check.to_s]["foo::bar"] = [ ">= 2.0" ] deserial = Chef::Cookbook::Metadata.from_hash(@hash) expect(deserial.send(to_check)["foo::bar"]).to eq(">= 2.0") |