From 578dd69354a8b0b24618be26508540370c5fa448 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Wed, 27 Jan 2016 10:09:16 -0800 Subject: Fix config load expectations for windows --- spec/unit/application_spec.rb | 2 +- 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 -- cgit v1.2.1