summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-26 22:18:02 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-27 15:18:56 -0700
commit20ce378890ca7991a23391000d6f7135a2c52841 (patch)
tree27845bfa36727306266b95912cf4fb4cccaf8fae
parentb6911fda35381e1ffe253a2ecdfec0dda181dd25 (diff)
downloadchef-20ce378890ca7991a23391000d6f7135a2c52841.tar.gz
Fix specs on windows
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource/chef_client_cron_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/chef_client_cron_spec.rb b/spec/unit/resource/chef_client_cron_spec.rb
index 25286de106..121758ac73 100644
--- a/spec/unit/resource/chef_client_cron_spec.rb
+++ b/spec/unit/resource/chef_client_cron_spec.rb
@@ -149,7 +149,7 @@ describe Chef::Resource::ChefClientCron do
allow(provider).to receive(:which).with("nice").and_return("/usr/bin/nice")
resource.nice(-15)
expect(provider.client_command).to eql(
- "/bin/sleep 123; /usr/bin/nice -n -15 /opt/chef/bin/chef-client -c /etc/chef/client.rb -L /var/log/chef/client.log"
+ "/bin/sleep 123; /usr/bin/nice -n -15 /opt/chef/bin/chef-client -c #{root_path} -L /var/log/chef/client.log"
)
end
end