diff options
-rw-r--r-- | spec/support/shared/unit/script_resource.rb | 8 |
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 |