summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-27 23:21:29 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-27 23:21:29 +0000
commitd6a9603eff9b8bf5d998d83e0507273bfd390f2e (patch)
treea86a4e006eeda08977462df2eb3cada6f437e88d /spec/ruby/library/win32ole
parent5eab7d7d5520e6c0701e9a892ce580c5756cd67b (diff)
use Scripting.Dictionary instead of InternetExplorer.Application for
_getproperty spec. * spec/ruby/library/win32ole/_getproperty_spec.rb: use Scripting.Dictionary. InternetExplorer.Application is not available on some environment. (Thanks to MSP-Greg (Greg L)) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/win32ole')
-rw-r--r--spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb b/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb
index 201fac9940..b7bd8044c4 100644
--- a/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb
@@ -5,15 +5,12 @@ platform_is :windows do
describe "WIN32OLE#_getproperty" do
before :each do
- @ie = WIN32OLESpecs.new_ole('InternetExplorer.Application')
+ @dict = WIN32OLESpecs.new_ole('Scripting.Dictionary')
end
- after :each do
- @ie.Quit
- end
-
- it "gets name" do
- @ie._getproperty(0, [], []).should =~ /explorer/i
+ it "gets value" do
+ @dict.add('key', 'value')
+ @dict._getproperty(0, ['key'], [WIN32OLE::VARIANT::VT_BSTR]).should == 'value'
end
end
end