summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/application_spec.rb')
-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)