diff options
author | Claire McQuin <claire@opscode.com> | 2013-08-13 12:51:33 -0700 |
---|---|---|
committer | Claire McQuin <claire@opscode.com> | 2013-08-19 14:17:39 -0700 |
commit | 163c8a4201978b55d1bc6d409a45143ba054470e (patch) | |
tree | e6ed138fb432f26ed9b1172576be8f4341a02d17 /spec/unit/system_spec.rb | |
parent | 5d74f1a56f866b025fff17f6f19a18d024c83842 (diff) | |
download | ohai-163c8a4201978b55d1bc6d409a45143ba054470e.tar.gz |
detect plugin version
Diffstat (limited to 'spec/unit/system_spec.rb')
-rw-r--r-- | spec/unit/system_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb index ea2f3e90..c4b2827a 100644 --- a/spec/unit/system_spec.rb +++ b/spec/unit/system_spec.rb @@ -40,6 +40,7 @@ describe Ohai::System, "load_plugins" do it "should load plugins when plugin_path has a trailing slash" do Ohai::Config[:plugin_path] = ["/tmp/plugins/"] + File.stub(:open).and_return(false) File.stub(:expand_path).with("/tmp/plugins/").and_return("/tmp/plugins") # windows Dir.should_receive(:[]).with("/tmp/plugins/*").and_return(["/tmp/plugins/darius.rb"]) Dir.should_receive(:[]).with("/tmp/plugins/#{Ohai::OS.collect_os}/**/*").and_return([]) |