diff options
author | Chris Doherty <cdoherty@ooyala.com> | 2014-09-18 18:10:43 -0700 |
---|---|---|
committer | Chris Doherty <cdoherty@ooyala.com> | 2014-09-18 18:10:43 -0700 |
commit | 1a2e63b136e5e6cb42f212b76b61763512588125 (patch) | |
tree | 7e66a8c9354728b339b1645ed3c3471bc951921a | |
parent | e60d16d1cb9378d8927207080494736c4c3609c2 (diff) | |
download | chef-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.rb | 2 |
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 |