diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-18 18:39:11 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-18 18:39:11 -0800 |
commit | 6077b99f6ad1bc9a082f575f3818e69f05d8c8dc (patch) | |
tree | ae132bad653614ae549e6301a01f991f8cf5cb5b /spec/unit/property | |
parent | 8f9a0dbd88de3014161bebfef7a02821e0010a37 (diff) | |
download | chef-6077b99f6ad1bc9a082f575f3818e69f05d8c8dc.tar.gz |
deal with 0.37.2 renamed cops
252 Style/TrailingCommaInLiteral
84 Style/TrailingCommaInArguments
15 Style/SpaceAroundKeyword
--
351 Total
We already dealt with SpaceAroundKeyword under its old name
SpaceBeforeModifierKeyword, it looks like it got stricter about
spaces after keywords.
TrailingComma also got split, and it looks like the
TrailingCommaInArguments behavior is new?
Diffstat (limited to 'spec/unit/property')
-rw-r--r-- | spec/unit/property/state_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/property/state_spec.rb b/spec/unit/property/state_spec.rb index f553991903..be19dd7ec2 100644 --- a/spec/unit/property/state_spec.rb +++ b/spec/unit/property/state_spec.rb @@ -228,7 +228,7 @@ describe "Chef::Resource#identity and #state" do expect(resource.state_for_resource_reporter).to eq(custom_property: 6) expect(resource_class.properties[:custom_property].desired_state?).to be_truthy expect(resource_class.state_properties).to eq [ - resource_class.properties[:custom_property] + resource_class.properties[:custom_property], ] end it "identity_properties does not change custom_property's getter or setter" do @@ -393,7 +393,7 @@ describe "Chef::Resource#identity and #state" do expect(resource_class.properties[:x].desired_state?).to be_truthy expect(resource_class.state_properties).to eq [ - resource_class.properties[:x] + resource_class.properties[:x], ] expect(resource.state_for_resource_reporter).to eq(x: 10) end @@ -430,11 +430,11 @@ describe "Chef::Resource#identity and #state" do expect(resource_class.properties[:x].desired_state?).to be_truthy expect(resource_class.properties[:x].identity?).to be_truthy expect(resource_class.identity_properties).to eq [ - resource_class.properties[:x] + resource_class.properties[:x], ] expect(resource.identity).to eq(10) expect(resource_class.state_properties).to eq [ - resource_class.properties[:x] + resource_class.properties[:x], ] expect(resource.state_for_resource_reporter).to eq(x: 10) end @@ -448,7 +448,7 @@ describe "Chef::Resource#identity and #state" do expect(resource_class.properties[:x].desired_state?).to be_falsey expect(resource_class.properties[:y].desired_state?).to be_truthy expect(resource_class.state_properties).to eq [ - resource_class.properties[:y] + resource_class.properties[:y], ] expect(resource.state_for_resource_reporter).to eq(y: 20) end @@ -474,11 +474,11 @@ describe "Chef::Resource#identity and #state" do expect(subresource_class.properties[:x].desired_state?).to be_truthy expect(subresource_class.properties[:x].identity?).to be_truthy expect(subresource_class.identity_properties).to eq [ - subresource_class.properties[:x] + subresource_class.properties[:x], ] expect(subresource.identity).to eq(10) expect(subresource_class.state_properties).to eq [ - subresource_class.properties[:x] + subresource_class.properties[:x], ] expect(subresource.state_for_resource_reporter).to eq(x: 10) end @@ -491,13 +491,13 @@ describe "Chef::Resource#identity and #state" do expect(subresource_class.properties[:x].object_id).to eq old_value.object_id expect(subresource_class.properties[:y].desired_state?).to be_truthy expect(subresource_class.state_properties).to eq [ - subresource_class.properties[:y] + subresource_class.properties[:y], ] expect(subresource.state_for_resource_reporter).to eq(y: 20) expect(subresource_class.properties[:x].identity?).to be_truthy expect(subresource_class.identity_properties).to eq [ - subresource_class.properties[:x] + subresource_class.properties[:x], ] expect(subresource.identity).to eq(10) end |