summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/application_spec.rb2
-rw-r--r--spec/unit/config_fetcher_spec.rb2
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