summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/network_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/network_spec.rb')
-rw-r--r--spec/unit/plugins/network_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/plugins/network_spec.rb b/spec/unit/plugins/network_spec.rb
index fd346a23..3bdc8f2f 100644
--- a/spec/unit/plugins/network_spec.rb
+++ b/spec/unit/plugins/network_spec.rb
@@ -23,7 +23,7 @@ def it_does_not_fail
Ohai::Log.stub(:warn)
Ohai::Log.should_not_receive(:debug).with(/^Plugin network threw exception/)
@plugin.run
- %w[ ipaddress, macaddress, ip6address ].each do |attribute|
+ %w{ ipaddress macaddress ip6address }.each do |attribute|
@plugin.should have_key(attribute)
end
end
@@ -149,9 +149,9 @@ describe Ohai::System, "Network Plugin" do
describe "with linux" do
before(:each) do
- @ohai = Ohai::System.new
- Ohai::Loader.new(@ohai).load_plugin(File.join(PLUGIN_PATH, "network.rb"), "net")
- @plugin = @ohai.plugins[:net][:plugin].new(@ohai)
+ ohai = Ohai::System.new
+ loader = Ohai::Loader.new(ohai)
+ @plugin = loader.load_plugin(File.join(PLUGIN_PATH, "network.rb")).new(ohai)
@plugin["network"] = basic_data["linux"]["network"]
end