summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-04 10:22:55 -0800
committerTim Smith <tsmith@chef.io>2018-01-04 10:23:08 -0800
commit33e3c48c7470747fc8c7af86c6fe759d7b4e2d03 (patch)
tree8d38c9f134d4cfcbe9761aa7df63506bc4de7e66
parent19d77fc82232dbf46975a3c2b110a2dc99e508d2 (diff)
downloadchef-jk/script-properties.tar.gz
Remove tests for command in script resourcejk/script-properties
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/support/shared/unit/script_resource.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/support/shared/unit/script_resource.rb b/spec/support/shared/unit/script_resource.rb
index a04da4b63e..b8075b1b2a 100644
--- a/spec/support/shared/unit/script_resource.rb
+++ b/spec/support/shared/unit/script_resource.rb
@@ -30,10 +30,6 @@ shared_examples_for "a script resource" do
expect(script_resource.resource_name).to eql(resource_name)
end
- it "should set command to nil on the resource", chef: ">= 13" do
- expect(script_resource.command).to be nil
- end
-
it "should accept a string for the code" do
script_resource.code "hey jude"
expect(script_resource.code).to eql("hey jude")
@@ -44,10 +40,6 @@ shared_examples_for "a script resource" do
expect(script_resource.flags).to eql("-f")
end
- it "should raise an exception if users set command on the resource", chef: ">= 13" do
- expect { script_resource.command("foo") }.to raise_error(Chef::Exceptions::Script)
- end
-
describe "when executing guards" do
let(:resource) do
resource = script_resource