diff options
Diffstat (limited to 'spec/ruby/library/win32ole/fixtures/classes.rb')
-rw-r--r-- | spec/ruby/library/win32ole/fixtures/classes.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/ruby/library/win32ole/fixtures/classes.rb b/spec/ruby/library/win32ole/fixtures/classes.rb index 139aa1225c..407af553c2 100644 --- a/spec/ruby/library/win32ole/fixtures/classes.rb +++ b/spec/ruby/library/win32ole/fixtures/classes.rb @@ -1,7 +1,14 @@ -require 'win32ole' +begin + require 'win32ole' +rescue LoadError +end module WIN32OLESpecs - MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } + begin + MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } + rescue + MSXML_AVAILABLE = false + end def self.new_ole(name) tries = 0 |