summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/netbsd
diff options
context:
space:
mode:
authorTheodore Nordsieck <theo@opscode.com>2013-09-09 18:38:22 -0700
committerTheodore Nordsieck <theo@opscode.com>2013-09-11 16:13:23 -0700
commit553b8567b1263a018712f92f6b46619d70285cbf (patch)
treeac4ddd5b539315dc5dd4d9fb74ada2f08de4ec31 /spec/unit/plugins/netbsd
parent4f858a0e9ab4934afc408682a9882c48e291552b (diff)
downloadohai-553b8567b1263a018712f92f6b46619d70285cbf.tar.gz
Converted plugins/netbsd/hostname to Mixlib::ShellOut.
Diffstat (limited to 'spec/unit/plugins/netbsd')
-rw-r--r--spec/unit/plugins/netbsd/hostname_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/netbsd/hostname_spec.rb b/spec/unit/plugins/netbsd/hostname_spec.rb
index e6744f83..3c8bd6c6 100644
--- a/spec/unit/plugins/netbsd/hostname_spec.rb
+++ b/spec/unit/plugins/netbsd/hostname_spec.rb
@@ -23,8 +23,8 @@ describe Ohai::System, "NetBSD hostname plugin" do
before(:each) do
@plugin = get_plugin("netbsd/hostname")
@plugin[:os] = "netbsd"
- @plugin.stub(:from).with("hostname -s").and_return("katie")
- @plugin.stub(:from).with("hostname").and_return("katie.bethell")
+ @plugin.stub(:shell_out).with("hostname -s").and_return(mock_shell_out(0, "katie\n", ""))
+ @plugin.stub(:shell_out).with("hostname").and_return(mock_shell_out(0, "katie.bethell", ""))
end
it_should_check_from("netbsd::hostname", "hostname", "hostname -s", "katie")