From 3c6faa186e62cf7cedf60d8433684a3f9fd8268e Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Thu, 10 Oct 2013 13:06:20 -0700 Subject: OHAI-501 / OHAI-502: Switch to using shell_out. --- spec/unit/plugins/solaris2/memory_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/plugins/solaris2/memory_spec.rb') diff --git a/spec/unit/plugins/solaris2/memory_spec.rb b/spec/unit/plugins/solaris2/memory_spec.rb index 3d8aa052..fc57fceb 100644 --- a/spec/unit/plugins/solaris2/memory_spec.rb +++ b/spec/unit/plugins/solaris2/memory_spec.rb @@ -20,7 +20,7 @@ describe Ohai::System, "Solaris2.X memory plugin" do before(:each) do @plugin = get_plugin("solaris2/memory") @plugin[:os] = "solaris2" - @plugin.stub(:from).with("prtconf -m").and_return("8194") + @plugin.stub(:shell_out).with("prtconf -m").and_return(mock_shell_out(0, "8194\n", "")) end it "should get the total memory" do -- cgit v1.2.1