spec/unit/util/file_helper_spec.rb in ohai-13.12.6 vs spec/unit/util/file_helper_spec.rb in ohai-14.0.28
- old
+ new
@@ -26,9 +26,11 @@
describe "Ohai::Util::FileHelper" do
let(:file_helper) { FileHelperMock.new }
before(:each) do
allow(file_helper).to receive(:name).and_return("Fakeclass")
+ logger = instance_double("Mixlib::Log::Child", trace: nil, debug: nil, warn: nil)
+ allow(file_helper).to receive(:logger).and_return(logger)
allow(File).to receive(:executable?).and_return(false)
end
describe "which" do
it "returns the path to an executable that is in the path" do