summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@ooyala.com>2014-09-18 18:10:43 -0700
committerChris Doherty <cdoherty@ooyala.com>2014-09-18 18:10:43 -0700
commit1a2e63b136e5e6cb42f212b76b61763512588125 (patch)
tree7e66a8c9354728b339b1645ed3c3471bc951921a
parente60d16d1cb9378d8927207080494736c4c3609c2 (diff)
downloadchef-1a2e63b136e5e6cb42f212b76b61763512588125.tar.gz
Fix test failure happening only on Jenkins 12.04+1.9.3: don't call File.unlink if the file isn't there.cdoherty-fix-jenkins-12.04-error
-rw-r--r--spec/unit/workstation_config_loader_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/workstation_config_loader_spec.rb b/spec/unit/workstation_config_loader_spec.rb
index d1e352602d..de108ff6d7 100644
--- a/spec/unit/workstation_config_loader_spec.rb
+++ b/spec/unit/workstation_config_loader_spec.rb
@@ -241,7 +241,7 @@ describe Chef::WorkstationConfigLoader do
t.path
end
- after { File.unlink(explicit_config_location) }
+ after { File.unlink(explicit_config_location) if File.exists?(explicit_config_location) }
context "and is valid" do