summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-05-15 15:16:38 -0700
committerAdam Edwards <adamed@opscode.com>2014-05-15 15:16:38 -0700
commit9902fd92d533c30ffc167177826e61de122800e0 (patch)
treef95e2d36e7a03fb73ce383c6e0191a2d5d1810cc /spec
parent561c38a5820b8996a680f32b47a65f32332a1aa8 (diff)
downloadwmi-lite-9902fd92d533c30ffc167177826e61de122800e0.tar.gz
Stub constant that is not defined on non-Windows platforms
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/wmi_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/wmi_spec.rb b/spec/unit/wmi_spec.rb
index bc63d32..beaaa46 100644
--- a/spec/unit/wmi_spec.rb
+++ b/spec/unit/wmi_spec.rb
@@ -56,6 +56,7 @@ describe WmiLite::Wmi do
end
before(:each) do
+ stub_const('WIN32OLE', Class.new)
WIN32OLE.stub(:new).with("WbemScripting.SWbemLocator").and_return(wbem_locator)
end