diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-31 11:33:50 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-02 12:27:42 -0700 |
commit | 127941112248fc05e2437cfe4143533b99650699 (patch) | |
tree | 0051e041307441f5d1bd02cd92a9d677e6f212c7 /spec/unit/resource | |
parent | 28e0bbb92defbcc1fd5bacfd163b0e4fc27f90c3 (diff) | |
download | chef-127941112248fc05e2437cfe4143533b99650699.tar.gz |
Fix failing specs
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource')
-rw-r--r-- | spec/unit/resource/build_essential_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/build_essential_spec.rb b/spec/unit/resource/build_essential_spec.rb index 62d7963ea2..e41256176f 100644 --- a/spec/unit/resource/build_essential_spec.rb +++ b/spec/unit/resource/build_essential_spec.rb @@ -59,12 +59,12 @@ describe Chef::Resource::BuildEssential do describe "#xcode_cli_installed?" do it "returns true if the CLI is in the InstallHistory plist" do - allow(::File).to receive(:open).with("/Library/Receipts/InstallHistory.plist", "r").and_return("spec/unit/resource/data/InstallHistory_with_CLT.plist") + allow(::File).to receive(:open).with("/Library/Receipts/InstallHistory.plist", "r").and_return(::File.join(::File.dirname(__FILE__), "data/InstallHistory_with_CLT.plist")) expect(provider.xcode_cli_installed?).to eql(true) end it "returns false if the pkgutil doesn't list the package" do - allow(::File).to receive(:open).with("/Library/Receipts/InstallHistory.plist", "r").and_return("spec/unit/resource/data/InstallHistory_without_CLT.plist") + allow(::File).to receive(:open).with("/Library/Receipts/InstallHistory.plist", "r").and_return(::File.join(::File.dirname(__FILE__), "data/InstallHistory_without_CLT.plist")) expect(provider.xcode_cli_installed?).to eql(false) end end |