summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb')
-rw-r--r--spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb b/spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb
new file mode 100644
index 0000000000..033e830fac
--- /dev/null
+++ b/spec/rubyspec/library/win32ole/win32ole_variable/shared/name.rb
@@ -0,0 +1,18 @@
+platform_is :windows do
+ require 'win32ole'
+
+ describe :win32ole_variable_new, shared: true do
+ # not sure how WIN32OLE_VARIABLE objects are supposed to be generated
+ # WIN32OLE_VARIABLE.new even seg faults in some cases
+ before :each do
+ ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
+ @var = ole_type.variables[0]
+ end
+
+ it "returns a String" do
+ @var.send(@method).should be_kind_of String
+ end
+
+ end
+
+end