diff options
Diffstat (limited to 'spec/unit/plugins/darwin/network_spec.rb')
-rw-r--r-- | spec/unit/plugins/darwin/network_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/plugins/darwin/network_spec.rb b/spec/unit/plugins/darwin/network_spec.rb index d076bc6b..46e53518 100644 --- a/spec/unit/plugins/darwin/network_spec.rb +++ b/spec/unit/plugins/darwin/network_spec.rb @@ -19,7 +19,7 @@ require "spec_helper" describe Ohai::System, "Darwin Network Plugin" do - before(:each) do + before do @darwin_ifconfig = <<~DARWIN_IFCONFIG lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=3<RXCSUM,TXCSUM> @@ -430,7 +430,7 @@ describe Ohai::System, "Darwin Network Plugin" do end describe "gathering IP layer address info" do - before(:each) do + before do allow(@plugin).to receive(:shell_out).with("arp -an").and_return(mock_shell_out(0, @darwin_arp, "")) allow(@plugin).to receive(:shell_out).with("ifconfig -a").and_return(mock_shell_out(0, @darwin_ifconfig, "")) allow(@plugin).to receive(:shell_out).with("netstat -i -d -l -b -n").and_return(mock_shell_out(0, @darwin_netstat, "")) @@ -549,7 +549,7 @@ describe Ohai::System, "Darwin Network Plugin" do expect(@plugin["network"][:default_gateway]).to eq("10.20.10.1") end - it "should detect network settings" do + it "detects network settings" do expect(@plugin["network"]["settings"]["net.local.stream.sendspace"]).to eq("8192") expect(@plugin["network"]["settings"]["net.local.stream.recvspace"]).to eq("8192") expect(@plugin["network"]["settings"]["net.local.stream.tracemdns"]).to eq("0") |