diff options
author | Adam Edwards <adamed@opscode.com> | 2014-05-15 15:16:38 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-05-15 15:16:38 -0700 |
commit | 9902fd92d533c30ffc167177826e61de122800e0 (patch) | |
tree | f95e2d36e7a03fb73ce383c6e0191a2d5d1810cc /spec | |
parent | 561c38a5820b8996a680f32b47a65f32332a1aa8 (diff) | |
download | wmi-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.rb | 1 |
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 |