summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authoradamedx <adamedx@gmail.com>2016-02-15 07:48:47 -0800
committernimisha <nimisha.sharad@msystechnologies.com>2017-02-02 18:00:30 +0530
commitaa155445b92e87baf1895ce092da3ae4c93117e6 (patch)
treecbb3f01bafeb456866e63674231f64386dc86f41 /spec/support
parentf0809fbb1c08ad14faed9c51f861a94373a39d27 (diff)
downloadchef-aa155445b92e87baf1895ce092da3ae4c93117e6.tar.gz
Rubocop violations in execute resource alternate user implementation
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/functional/windows_script.rb2
-rw-r--r--spec/support/shared/unit/execute_resource.rb14
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/shared/functional/windows_script.rb b/spec/support/shared/functional/windows_script.rb
index 361e5a71e0..4bd6bdf230 100644
--- a/spec/support/shared/functional/windows_script.rb
+++ b/spec/support/shared/functional/windows_script.rb
@@ -142,7 +142,7 @@ shared_context Chef::Resource::WindowsScript do
before do
expect(script_provider).to receive(:unlink_script_file)
- resource.code('echo hi')
+ resource.code("echo hi")
script_provider.action_run
end
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/")