enebo/jruby-win32ole — Issue #6: WIN32OLE.const_load should accept a string as its first argument for compatibility
Author: johndouthat
Created: 2012-02-02 08:46:55+00:00
State: open

```ruby
require 'win32ole'
module Constants
end
WIN32OLE.const_load("Microsoft Excel 12.0 Object Library", Constants)
```

Expected behavior: Some constants should be loaded into the Constants module, according to MRI's win32ole behavior.
Actual behavior: ```NoMethodError: undefined method `type_info' for "Microsoft Excel 12.0 Object Library"```

According to http://ruby-doc.org/stdlib-1.9.3/libdoc/win32ole/rdoc/WIN32OLE.html#method-c-const_load,

> The first argument is WIN32OLE object or type library name.