diff options
Diffstat (limited to 'spec/unit/plugins/netbsd')
-rw-r--r-- | spec/unit/plugins/netbsd/hostname_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/plugins/netbsd/kernel_spec.rb | 4 | ||||
-rw-r--r-- | spec/unit/plugins/netbsd/platform_spec.rb | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/plugins/netbsd/hostname_spec.rb b/spec/unit/plugins/netbsd/hostname_spec.rb index 4486a4c9..3b214a34 100644 --- a/spec/unit/plugins/netbsd/hostname_spec.rb +++ b/spec/unit/plugins/netbsd/hostname_spec.rb @@ -19,7 +19,7 @@ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb") describe Ohai::System, "NetBSD hostname plugin" do - before(:each) do + before do @plugin = get_plugin("hostname") allow(@plugin).to receive(:collect_os).and_return(:netbsd) allow(@plugin).to receive(:shell_out).with("hostname -s").and_return(mock_shell_out(0, "katie\n", "")) @@ -31,12 +31,12 @@ describe Ohai::System, "NetBSD hostname plugin" do it_should_check_from("linux::hostname", "machinename", "hostname", "katie.local") - it "should use #resolve_fqdn to find the fqdn" do + it "uses #resolve_fqdn to find the fqdn" do @plugin.run expect(@plugin[:fqdn]).to eq("katie.bethell") end - it "should set the domain to everything after the first dot of the fqdn" do + it "sets the domain to everything after the first dot of the fqdn" do @plugin.run expect(@plugin[:domain]).to eq("bethell") end diff --git a/spec/unit/plugins/netbsd/kernel_spec.rb b/spec/unit/plugins/netbsd/kernel_spec.rb index 6b716efc..48e418a9 100644 --- a/spec/unit/plugins/netbsd/kernel_spec.rb +++ b/spec/unit/plugins/netbsd/kernel_spec.rb @@ -19,7 +19,7 @@ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb") describe Ohai::System, "NetBSD kernel plugin" do - before(:each) do + before do @plugin = get_plugin("kernel") allow(@plugin).to receive(:collect_os).and_return(:netbsd) allow(@plugin).to receive(:init_kernel).and_return({}) @@ -28,7 +28,7 @@ describe Ohai::System, "NetBSD kernel plugin" do allow(@plugin).to receive(:shell_out).with("#{ Ohai.abs_path( "/usr/bin/modstat" )}").and_return(mock_shell_out(0, " 1 7 0xc0400000 97f830 kernel", "")) end - it "should set the kernel_os to the kernel_name value" do + it "sets the kernel_os to the kernel_name value" do @plugin.run expect(@plugin[:kernel][:os]).to eq(@plugin[:kernel][:name]) end diff --git a/spec/unit/plugins/netbsd/platform_spec.rb b/spec/unit/plugins/netbsd/platform_spec.rb index 37da17ab..d0947075 100644 --- a/spec/unit/plugins/netbsd/platform_spec.rb +++ b/spec/unit/plugins/netbsd/platform_spec.rb @@ -19,19 +19,19 @@ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb") describe Ohai::System, "NetBSD plugin platform" do - before(:each) do + before do @plugin = get_plugin("netbsd/platform") allow(@plugin).to receive(:shell_out).with("uname -s").and_return(mock_shell_out(0, "NetBSD\n", "")) allow(@plugin).to receive(:shell_out).with("uname -r").and_return(mock_shell_out(0, "4.5\n", "")) allow(@plugin).to receive(:collect_os).and_return(:netbsd) end - it "should set platform to lowercased lsb[:id]" do + it "sets platform to lowercased lsb[:id]" do @plugin.run expect(@plugin[:platform]).to eq("netbsd") end - it "should set platform_version to lsb[:release]" do + it "sets platform_version to lsb[:release]" do @plugin.run expect(@plugin[:platform_version]).to eq("4.5") end |