diff options
author | Tim Smith <tsmith@chef.io> | 2016-12-19 17:57:20 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2016-12-19 18:27:40 -0800 |
commit | b81243bff3b7adfdcbe9c2950f0762bf40701c49 (patch) | |
tree | 846575d2d70b411913d6871523d3aa1828a0a299 /spec/unit | |
parent | f46354f528ac5158de7ee817be10b38ee91e37ea (diff) | |
download | ohai-b81243bff3b7adfdcbe9c2950f0762bf40701c49.tar.gz |
Better error handling if we can't determine Cumulus versioncumulus
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/plugins/linux/platform_spec.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index 34b79254..47d81e23 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -176,7 +176,6 @@ describe Ohai::System, "Linux plugin platform" do context "on cumulus" do let(:have_cumulus_dir) { true } - let(:have_cumulus_release) { true } let(:cumulus_release_content) do <<-OS_RELEASE NAME="Cumulus Linux" @@ -193,7 +192,6 @@ OS_RELEASE end before(:each) do - expect(File).to receive(:exist?).with("/etc/cumulus/etc.replace/os-release").and_return(true) expect(File).to receive(:read).with("/etc/cumulus/etc.replace/os-release").and_return(cumulus_release_content) end |