spec/unit/plugins/scsi_spec.rb in ohai-15.2.5 vs spec/unit/plugins/scsi_spec.rb in ohai-15.3.1

- old
+ new

@@ -18,10 +18,11 @@ require "spec_helper" describe Ohai::System, "lsscsi plugin" do let(:plugin) { get_plugin("scsi") } - before(:each) do + + before do allow(plugin).to receive(:collect_os).and_return(:linux) @stdout = <<~LSSCSI [5:0:0:0] disk ATA Hitachi HUA72205 A3EA /dev/sda [6:2:0:0] disk LSI MR9286CV-8e 3.41 /dev/sdb [6:2:1:0] disk LSI MR9286CV-8e 3.41 /dev/sdc