diff options
author | adamedx <adamedx@gmail.com> | 2016-02-15 07:48:47 -0800 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-02 18:00:30 +0530 |
commit | aa155445b92e87baf1895ce092da3ae4c93117e6 (patch) | |
tree | cbb3f01bafeb456866e63674231f64386dc86f41 /spec/support/shared/unit | |
parent | f0809fbb1c08ad14faed9c51f861a94373a39d27 (diff) | |
download | chef-aa155445b92e87baf1895ce092da3ae4c93117e6.tar.gz |
Rubocop violations in execute resource alternate user implementation
Diffstat (limited to 'spec/support/shared/unit')
-rw-r--r-- | spec/support/shared/unit/execute_resource.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb index 275b327b86..ab6ed2b86b 100644 --- a/spec/support/shared/unit/execute_resource.rb +++ b/spec/support/shared/unit/execute_resource.rb @@ -107,13 +107,13 @@ shared_examples_for "an execute resource" do end it "should accept a string for the domain" do - @resource.domain 'mothership' - expect(@resource.domain).to eql('mothership') + @resource.domain "mothership" + expect(@resource.domain).to eql("mothership") end it "should accept a string for the password" do - @resource.password 'we.funk!' - expect(@resource.password).to eql('we.funk!') + @resource.password "we.funk!" + expect(@resource.password).to eql("we.funk!") end it "should accept a string for creates" do @@ -139,13 +139,13 @@ shared_examples_for "an execute resource" do it "should be true if the password is non-nil" do expect(@resource.sensitive).to eq(false) - @resource.password('we.funk!') + @resource.password("we.funk!") expect(@resource.sensitive).to eq(true) end it "should be true if the password is non-nil but the value is explicitly set to false" do expect(@resource.sensitive).to eq(false) - @resource.password('we.funk!') + @resource.password("we.funk!") expect(@resource.sensitive).to eq(true) @resource.sensitive false expect(@resource.sensitive).to eq(true) @@ -153,7 +153,7 @@ shared_examples_for "an execute resource" do end - describe "when it has cwd, environment, group, path, return value, and a user" do + describe "when it has cwd, environment, group, path, return value, and a user" do before do @resource.command("grep") @resource.cwd("/tmp/") |