From 34876a5bec16a345f46b66d5dbbcf0356a73daf5 Mon Sep 17 00:00:00 2001 From: Shahul Hameed Date: Thu, 6 Aug 2015 20:41:56 +0000 Subject: Update solaris2 memory spec to match memory command --- spec/unit/plugins/solaris2/memory_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/plugins/solaris2/memory_spec.rb b/spec/unit/plugins/solaris2/memory_spec.rb index 29bf3089..73713695 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") allow(@plugin).to receive(:collect_os).and_return("solaris2") - allow(@plugin).to receive(:shell_out).with("prtconf -m").and_return(mock_shell_out(0, "8194\n", "")) + allow(@plugin).to receive(:shell_out).with("prtconf | grep Memory").and_return(mock_shell_out(0, "Memory size: 8194 Megabytes\n", "")) end it "should get the total memory" do -- cgit v1.2.1