aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library')
-rw-r--r--spec/ruby/library/win32ole/fixtures/classes.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/win32ole/fixtures/classes.rb b/spec/ruby/library/win32ole/fixtures/classes.rb
index cde47f7580..407af553c2 100644
--- a/spec/ruby/library/win32ole/fixtures/classes.rb
+++ b/spec/ruby/library/win32ole/fixtures/classes.rb
@@ -1,4 +1,15 @@
+begin
+ require 'win32ole'
+rescue LoadError
+end
+
module WIN32OLESpecs
+ 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
begin