summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-12-19 17:57:20 -0800
committerTim Smith <tsmith@chef.io>2016-12-19 18:27:40 -0800
commitb81243bff3b7adfdcbe9c2950f0762bf40701c49 (patch)
tree846575d2d70b411913d6871523d3aa1828a0a299 /spec/unit
parentf46354f528ac5158de7ee817be10b38ee91e37ea (diff)
downloadohai-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.rb2
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