spec/unit/plugins/linux/platform_spec.rb in ohai-8.19.2 vs spec/unit/plugins/linux/platform_spec.rb in ohai-8.20.0

- old
+ new

@@ -697,11 +697,11 @@ expect(@plugin[:platform_family]).to eq("suse") end end end - describe '#read_os_release_info' do + describe "#read_os_release_info" do let(:file_contents) { "COW=MOO\nDOG=\"BARK\"" } it "returns nil if the file does not exist" do allow(File).to receive(:exist?).with("/etc/test-release").and_return(false) expect(@plugin.read_os_release_info("/etc/test-release")).to be nil end @@ -714,10 +714,10 @@ expect(release_info["COW"]).to eq("MOO") expect(release_info["DOG"]).to eq("BARK") end end - describe '#os_release_info' do + describe "#os_release_info" do context "when CISCO_RELEASE_INFO is not populated" do let(:release_info) { { "ID" => "os_id" } } before do allow(File).to receive(:exist?).with("/etc/os-release").and_return(true)