summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahul Hameed <skhajamohid1@bloomberg.net>2015-08-06 20:41:56 +0000
committerShahul Hameed <skhajamohid1@bloomberg.net>2015-08-06 20:41:56 +0000
commit34876a5bec16a345f46b66d5dbbcf0356a73daf5 (patch)
tree23cf862d36bfe012d65517404df19afca00e8a31
parente1bd25cdde33dbbda6bc6f0671448fbdf3f208a4 (diff)
downloadohai-34876a5bec16a345f46b66d5dbbcf0356a73daf5.tar.gz
Update solaris2 memory spec to match memory command
-rw-r--r--spec/unit/plugins/solaris2/memory_spec.rb2
1 files changed, 1 insertions, 1 deletions
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