Permalink
Browse files

boyscout rule some specs for solaris hostname

  • Loading branch information...
1 parent 55dc303 commit 3122053804cedf0d376a3fee13914a66acd35565 @danielsdeleo danielsdeleo committed with fujin Sep 26, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/ohai/plugins/solaris2/kernel_spec.rb
@@ -137,13 +137,15 @@
@ohai = Ohai::System.new
@ohai.stub!(:require_plugin).and_return(true)
@ohai[:kernel] = Mash.new
- @modinfo_stdout = StringIO.new(MODINFO)
+ @ohai.stub(:from).with("uname -s").and_return("SunOS")
end
+
+ it_should_check_from_deep_mash("solaris2::kernel", "kernel", "os", "uname -s", "SunOS")
it "gives excruciating detail about kernel modules" do
stdin = mock("stdin", :null_object => true)
+ @modinfo_stdout = StringIO.new(MODINFO)
@ohai.stub!(:popen4).with("modinfo").and_yield(nil, stdin, @modinfo_stdout, nil)
- @ohai.stub(:from).with("uname -s").and_return("solaris2")
@ohai._require_plugin("solaris2::kernel")

0 comments on commit 3122053

Please sign in to comment.