spec/unit/plugins/init_package_spec.rb in ohai-13.12.6 vs spec/unit/plugins/init_package_spec.rb in ohai-14.0.28

- old
+ new

@@ -29,10 +29,10 @@ let(:proc1_exists) { true } let(:proc_1_file_path) { "/proc/1/comm" } let(:proc_1_file) { double(proc_1_file_path, :gets => proc1_content) } before(:each) do - allow(File).to receive(:exists?).with(proc_1_file_path).and_return(proc1_exists) + allow(File).to receive(:exist?).with(proc_1_file_path).and_return(proc1_exists) allow(File).to receive(:open).with(proc_1_file_path).and_return(proc_1_file) end it "should set init_package to init" do plugin.run