blob: f9293e3c99ecdc632b9d32ec80729d7497cea20b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require_relative '../fixtures/classes'
platform_is :windows do
require 'win32ole'
describe "WIN32OLE.connect" do
it "creates WIN32OLE object given valid argument" do
obj = WIN32OLE.connect("winmgmts:")
obj.should be_kind_of WIN32OLE
end
it "raises TypeError when given invalid argument" do
lambda { WIN32OLE.connect 1 }.should raise_error TypeError
end
end
end
|