spec/unit/plugins/init_package_spec.rb in ohai-14.2.0 vs spec/unit/plugins/init_package_spec.rb in ohai-14.3.0

- old
+ new

@@ -26,10 +26,10 @@ end let(:proc1_content) { "init\n" } let(:proc1_exists) { true } let(:proc_1_file_path) { "/proc/1/comm" } - let(:proc_1_file) { double(proc_1_file_path, :gets => proc1_content) } + let(:proc_1_file) { double(proc_1_file_path, gets: proc1_content) } before(:each) do 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