aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb')
-rw-r--r--spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb b/spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb
new file mode 100644
index 0000000000..2bc19aa85e
--- /dev/null
+++ b/spec/rubyspec/library/win32ole/win32ole_type/ole_type_spec.rb
@@ -0,0 +1,18 @@
+platform_is :windows do
+ require 'win32ole'
+
+ describe "WIN32OLE_TYPE#ole_type 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 "returns string 'Class'" do
+ @ole_type.ole_type.should == "Class"
+ end
+
+ end
+end