diff options
author | danielsdeleo <dan@chef.io> | 2016-01-27 10:09:16 -0800 |
---|---|---|
committer | danielsdeleo <dan@chef.io> | 2016-01-27 10:09:16 -0800 |
commit | 578dd69354a8b0b24618be26508540370c5fa448 (patch) | |
tree | fe83dd21bd08544388bdd2f0dd0e351420fc1702 | |
parent | d825debe7622ded31db899ce84234e979ca66eb2 (diff) | |
download | chef-re-fix-cache-path-relative-config.tar.gz |
Fix config load expectations for windowsre-fix-cache-path-relative-config
-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 |