diff options
author | danielsdeleo <dan@chef.io> | 2016-01-27 10:09:16 -0800 |
---|---|---|
committer | danielsdeleo <dan@chef.io> | 2016-01-27 12:38:54 -0800 |
commit | ec52ff63496d3256fd75886d925687208a88fd0e (patch) | |
tree | dd61bc1b2dea30cf84e1438d449ba464d94bd377 | |
parent | 036236309fad39da04b05a50bdde02f8d56102d3 (diff) | |
download | chef-ec52ff63496d3256fd75886d925687208a88fd0e.tar.gz |
Fix config load expectations for windows
-rw-r--r-- | spec/unit/application_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/config_fetcher_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 99c5133f70..340f062564 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -132,7 +132,7 @@ describe Chef::Application do end it "should configure chef::config from a file" do - expect(Chef::Config).to receive(:from_string).with(config_content, config_location) + expect(Chef::Config).to receive(:from_string).with(config_content, File.expand_path(config_location)) @app.configure_chef end diff --git a/spec/unit/config_fetcher_spec.rb b/spec/unit/config_fetcher_spec.rb index 82eca1cf1a..84aad38876 100644 --- a/spec/unit/config_fetcher_spec.rb +++ b/spec/unit/config_fetcher_spec.rb @@ -23,7 +23,7 @@ describe Chef::ConfigFetcher do end it "gives the expanded path to the config file" do - expect(fetcher.expanded_path).to eq(config_location) + expect(fetcher.expanded_path).to eq(File.expand_path(config_location)) end context "with a relative path" do |