diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-12-08 22:20:51 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-12-08 22:20:51 -0800 |
commit | a8fe2914910c47177b4d2125ea181be1fd52d139 (patch) | |
tree | 79fef28b4040a97e93b4393e5e17d4c8b288d088 | |
parent | 3d092780662579e6dc4dc9c0e2cfd8841cf12c1a (diff) | |
download | chef-a8fe2914910c47177b4d2125ea181be1fd52d139.tar.gz |
Fix the unit test with missing rspec filter.
-rw-r--r-- | spec/support/shared/unit/execute_resource.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb index 5d901ecf57..104aa7694e 100644 --- a/spec/support/shared/unit/execute_resource.rb +++ b/spec/support/shared/unit/execute_resource.rb @@ -76,16 +76,12 @@ shared_examples_for "an execute resource" do @resource.group.should eql(1) end - it "should accept an array for the execution path in Chef-12 and log deprecation message", :chef_lt_13_only do + it "should accept an array for the execution path in Chef-12 and log deprecation message" do expect(Chef::Log).to receive(:warn).at_least(:once) @resource.path ["woot"] expect(@resource.path).to eql(["woot"]) end - it "should raise an exception in chef-13", :chef_gte_13_only do - expect(@resource.path [ "woot" ]).to raise_error - end - it "should accept an integer for the return code" do @resource.returns 1 @resource.returns.should eql(1) |