diff options
author | Bryan McLellan <btm@loftninjas.org> | 2014-10-01 12:16:45 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-10-01 12:16:45 -0400 |
commit | a004f65a359baf38e4cb43d80a1975f58b64eed4 (patch) | |
tree | ede438359cc26dab52b359c7ba111e0552597b2c /spec | |
parent | f29e72f26288a7db82139e066a2cfaebe16f261c (diff) | |
download | chef-a004f65a359baf38e4cb43d80a1975f58b64eed4.tar.gz |
Re-remove tests that were removed in 6591d4b2
These tests are no longer correct since we don't allow passing a block with
a guard interpreter.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/resource/powershell_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/functional/resource/powershell_spec.rb b/spec/functional/resource/powershell_spec.rb index a18ce3a0fd..1a5454562d 100644 --- a/spec/functional/resource/powershell_spec.rb +++ b/spec/functional/resource/powershell_spec.rb @@ -284,26 +284,6 @@ describe Chef::Resource::WindowsScript::PowershellScript, :windows_only do resource.should_skip?(:run).should be_false end - it "evaluates a not_if block as false" do - resource.not_if { false } - resource.should_skip?(:run).should be_false - end - - it "evaluates a not_if block as true" do - resource.not_if { true } - resource.should_skip?(:run).should be_true - end - - it "evaluates an only_if block as false" do - resource.only_if { false } - resource.should_skip?(:run).should be_true - end - - it "evaluates an only_if block as true" do - resource.only_if { true } - resource.should_skip?(:run).should be_false - end - it "evaluates a non-zero powershell exit status for not_if as true" do resource.not_if "exit 37" resource.should_skip?(:run).should be_false |