diff options
Diffstat (limited to 'spec/unit/plugins/platform_spec.rb')
-rw-r--r-- | spec/unit/plugins/platform_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/plugins/platform_spec.rb b/spec/unit/plugins/platform_spec.rb index 1af03214..6dc20469 100644 --- a/spec/unit/plugins/platform_spec.rb +++ b/spec/unit/plugins/platform_spec.rb @@ -21,9 +21,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') describe Ohai::System, "plugin platform" do before(:each) do - @ohai = Ohai::System.new - Ohai::Loader.new(@ohai).load_plugin(File.join(PLUGIN_PATH, "platform.rb"), "plat") - @plugin = @ohai.plugins[:plat][:plugin].new(@ohai) + ohai = Ohai::System.new + loader = Ohai::Loader.new(ohai) + @plugin = loader.load_plugin(File.join(PLUGIN_PATH, "platform.rb")).new(ohai) @plugin[:os] = 'monkey' @plugin[:os_version] = 'poop' end |