blob: 6484ef0ef8c30d01d5d79cb346e3a1c93292b5f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
platform_is :windows do
require 'win32ole'
describe :win32ole_type_name, shared: true do
before :each do
@ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
end
it "raises ArgumentError if argument is given" do
lambda { @ole_type.send(@method, 1) }.should raise_error ArgumentError
end
it "returns a String" do
@ole_type.send(@method).should == 'ShellSpecialFolderConstants'
end
end
end
|