Skip to content

Commit

Permalink
[OHAI-412] fix missing stub in linux kernel plugin
Browse files Browse the repository at this point in the history
Was causing spec failures on windows
  • Loading branch information
danielsdeleo committed Jul 12, 2013
1 parent 968c809 commit 2e46efe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/unit/plugins/linux/kernel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e46efe

Please sign in to comment.