summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole_variable/value_spec.rb')
-rw-r--r--spec/ruby/library/win32ole/win32ole_variable/value_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb b/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb
index c15f64c2c5..33066e40ef 100644
--- a/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb
@@ -1,3 +1,4 @@
+require_relative "../../../spec_helper"
platform_is :windows do
require 'win32ole'
@@ -5,13 +6,13 @@ platform_is :windows 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")
+ ole_type = WIN32OLE::Type.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
- it "returns a Integer" do
+ it "returns an Integer" do
# according to doc, this could return nil
- @var.value.should be_kind_of Integer
+ @var.value.should.is_a? Integer
end
end