ruby-changes:53183
From: suke <ko1@a...>
Date: Sun, 28 Oct 2018 08:21:33 +0900 (JST)
Subject: [ruby-changes:53183] suke:r65398 (trunk): use Scripting.Dictionary instead of InternetExplorer.Application for
suke 2018-10-28 08:21:29 +0900 (Sun, 28 Oct 2018) New Revision: 65398 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65398 Log: 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)) Modified files: trunk/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb Index: spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb =================================================================== --- spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb (revision 65397) +++ spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb (revision 65398) @@ -5,15 +5,12 @@ platform_is :windows do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb#L5 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/