mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/win32ole] Undefine allocator of WIN32OLE_VARIABLE to get rid of warning
27d0fdc622
This commit is contained in:
parent
31c69d66d2
commit
db547a3bc4
2 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,10 @@ if defined?(WIN32OLE_VARIABLE)
|
|||
@var2 = variables.find {|v| v.name == 'UILevel'}
|
||||
end
|
||||
|
||||
def test_initialize
|
||||
assert_raise(TypeError) {WIN32OLE_VARIABLE.new}
|
||||
end
|
||||
|
||||
def test_name
|
||||
assert_equal('ssfDESKTOP', @var1.name)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue