diff options
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole_type/typelibs_spec.rb')
-rw-r--r-- | spec/ruby/library/win32ole/win32ole_type/typelibs_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/ruby/library/win32ole/win32ole_type/typelibs_spec.rb b/spec/ruby/library/win32ole/win32ole_type/typelibs_spec.rb new file mode 100644 index 0000000000..3a28c0496c --- /dev/null +++ b/spec/ruby/library/win32ole/win32ole_type/typelibs_spec.rb @@ -0,0 +1,22 @@ +platform_is :windows do + require 'win32ole' + + describe "WIN32OLE_TYPE.typelibs for Shell Controls" do + before :each do + @ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "Shell") + end + + after :each do + @ole_type = nil + end + + it "raises ArgumentError if any argument is give" do + lambda { WIN32OLE_TYPE.typelibs(1) }.should raise_error ArgumentError + end + + it "returns array of type libraries" do + WIN32OLE_TYPE.typelibs().include?("Microsoft Shell Controls And Automation").should be_true + end + + end +end |