method

test_s_new_from_clsid

v1_8_7_330 - Show latest stable - Class: TestWin32OLE
test_s_new_from_clsid()
public

No documentation available.

# File ext/win32ole/tests/testWIN32OLE.rb, line 36
  def test_s_new_from_clsid
    excel = WIN32OLE.new("{00024500-0000-0000-C000-000000000046}")
    assert_instance_of(WIN32OLE, excel)
    excel.quit
    exc = assert_exception(WIN32OLERuntimeError) {
      WIN32OLE.new("{000}")
    }
    assert_match(/unknown OLE server: `\{000\}'/, exc.message)
  end