summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb')
-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