diff options
author | Bryan McLellan <btm@opscode.com> | 2013-10-10 13:06:20 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-10 13:06:20 -0700 |
commit | 3c6faa186e62cf7cedf60d8433684a3f9fd8268e (patch) | |
tree | bf27380af18e5fdbf046ed0e8cf424e12c110c24 /spec/unit/plugins/solaris2/memory_spec.rb | |
parent | 8320ba43c82cdb750a16bd3fe2ae6fc6a5c97161 (diff) | |
download | ohai-3c6faa186e62cf7cedf60d8433684a3f9fd8268e.tar.gz |
OHAI-501 / OHAI-502: Switch to using shell_out.
Diffstat (limited to 'spec/unit/plugins/solaris2/memory_spec.rb')
-rw-r--r-- | spec/unit/plugins/solaris2/memory_spec.rb | 2 |
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 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 |