diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-20 10:41:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-20 10:41:43 -0700 |
commit | 56f673f0bfee707c4d0bba91d50e4ae4582a5eba (patch) | |
tree | cda95c06f4635a7cd8cdc95faa6795a655176af1 /spec/unit/provider | |
parent | ccfe07dbd812890a732432bae7c2e522b79f643d (diff) | |
download | chef-56f673f0bfee707c4d0bba91d50e4ae4582a5eba.tar.gz |
fix edge condition in old timeout APIslcg/deprecate-shell-out-methods
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/package_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/package_spec.rb b/spec/unit/provider/package_spec.rb index 2eb7cf63e1..904e339e47 100644 --- a/spec/unit/provider/package_spec.rb +++ b/spec/unit/provider/package_spec.rb @@ -942,7 +942,7 @@ describe "Chef::Provider::Package - Multi" do end [ :shell_out_with_timeout, :shell_out_with_timeout! ].each do |method| - stubbed_method = method == :shell_out_with_timeout! ? :shell_out! : :shell_out + stubbed_method = method == :shell_out_with_timeout! ? :shell_out_compacted! : :shell_out_compacted [ %w{command arg1 arg2}, "command arg1 arg2" ].each do |command| it "#{method} defaults to 900 seconds" do expect(provider).to receive(stubbed_method).with(*command, timeout: 900) |