From 9902fd92d533c30ffc167177826e61de122800e0 Mon Sep 17 00:00:00 2001 From: Adam Edwards Date: Thu, 15 May 2014 15:16:38 -0700 Subject: Stub constant that is not defined on non-Windows platforms --- spec/unit/wmi_spec.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1