summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-04-22 09:44:36 -0700
committerTim Smith <tsmith84@gmail.com>2016-04-22 09:44:36 -0700
commit9b30b44caaf299edbfdb1d792fdc96149f1e2cfb (patch)
tree27c7cdaf068ced9588567db60eee446eb2dc0261
parent898d8f57c5e16734982938f5c6e1cdfd6baa21b5 (diff)
downloadohai-plugin_path.tar.gz
Fix rspec failureplugin_path
-rw-r--r--spec/unit/dsl/plugin_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/dsl/plugin_spec.rb b/spec/unit/dsl/plugin_spec.rb
index 4b225df5..2a35701c 100644
--- a/spec/unit/dsl/plugin_spec.rb
+++ b/spec/unit/dsl/plugin_spec.rb
@@ -587,6 +587,7 @@ describe Ohai::DSL::Plugin::VersionVI do
let(:ohai) { Ohai::System.new }
it "logs a debug message when provides is used" do
+ allow(Ohai::Log).to receive(:debug)
expect(Ohai::Log).to receive(:debug).with(/Skipping provides/)
plugin = Ohai::DSL::Plugin::VersionVI.new(ohai, "/some/plugin/path.rb", "/some/plugin")
plugin.provides("attribute")