summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/run_lock_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/run_lock_spec.rb b/spec/unit/run_lock_spec.rb
index e054c4899c..de302dc533 100644
--- a/spec/unit/run_lock_spec.rb
+++ b/spec/unit/run_lock_spec.rb
@@ -20,10 +20,12 @@ require 'chef/client'
describe Chef::RunLock do
+ default_pid_location = windows? ? 'C:\chef\cache\chef-client-running.pid' : '/var/chef/cache/chef-client-running.pid'
+
describe "when first created" do
it "locates the lockfile in the file cache path by default" do
run_lock = Chef::RunLock.new(Chef::Config.lockfile)
- run_lock.runlock_file.should == "/var/chef/cache/chef-client-running.pid"
+ run_lock.runlock_file.should == default_pid_location
end
it "locates the lockfile in the user-configured path when set" do