1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/win32ole/test_win32ole_variant.rb: use other than Integer

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-05-18 02:05:30 +00:00
parent 6a69ab937c
commit 2bedfc6627

View file

@ -523,9 +523,9 @@ if defined?(WIN32OLE_VARIANT)
def test_create_vt_array_exc
exc = assert_raise(TypeError) {
WIN32OLE_VARIANT.new(1, WIN32OLE::VARIANT::VT_ARRAY);
WIN32OLE_VARIANT.new("", WIN32OLE::VARIANT::VT_ARRAY)
}
assert_match(/wrong argument type Fixnum \(expected Array\)/, exc.message)
assert_match(/wrong argument type String \(expected Array\)/, exc.message)
end
def test_create_vt_array_str2ui1array