Permalink
Browse files

[OHAI-412] fix missing stub in linux kernel plugin

Was causing spec failures on windows
  • Loading branch information...
1 parent 968c809 commit 2e46efe356a4571fdbdc8732829b7c031ac23e12 @danielsdeleo danielsdeleo committed Oct 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/unit/plugins/linux/kernel_spec.rb
@@ -25,6 +25,7 @@
@plugin = Ohai::DSL::Plugin.new(@ohai, File.expand_path("linux/kernel.rb", PLUGIN_PATH))
@plugin.stub!(:require_plugin).and_return(true)
@plugin.stub!(:from).with("uname -o").and_return("Linux")
+ @plugin.should_receive(:popen4).with("env lsmod").at_least(1).times
@plugin[:kernel] = {}
@plugin.run
end

0 comments on commit 2e46efe

Please sign in to comment.