summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-07-02 23:24:22 -0700
committerTim Smith <tsmith84@gmail.com>2021-10-20 16:35:51 -0700
commit50c26342c1f7c0a0cf8b1b07d05458cb6ddf37f1 (patch)
tree6811b2024b95e61505813361b8be44ac2b1f2452
parente942be8db09e592b67cd2bb16348632c1fd64e34 (diff)
downloadohai-testing.tar.gz
Don't fail if running on D: on windowstesting
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/application_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index 4895b184..86970cdb 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -44,7 +44,7 @@ RSpec.describe "Ohai::Application" do
before do
if windows?
expect(ChefConfig::WorkstationConfigLoader).to receive(:new)
- .with("C:#{config_file}", Ohai::Log)
+ .with(/[CD]:#{config_file}/, Ohai::Log)
.and_return(config_loader)
else
expect(ChefConfig::WorkstationConfigLoader).to receive(:new)