use Scripting.Dictionary instead of InternetExplorer.Application.
* spec/ruby/library/win32ole/invoke_spec.rb: use Scripting.Dictionary instead of InternetExplorer.Application. 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@65399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d6a9603eff
commit
33a8b277dc
@ -5,15 +5,12 @@ platform_is :windows do
|
||||
|
||||
describe "WIN32OLE#invoke" do
|
||||
before :each do
|
||||
@ie = WIN32OLESpecs.new_ole('InternetExplorer.Application')
|
||||
@dict = WIN32OLESpecs.new_ole('Scripting.Dictionary')
|
||||
end
|
||||
|
||||
after :each do
|
||||
@ie.Quit
|
||||
end
|
||||
|
||||
it "get name by invoking 'Name' OLE method" do
|
||||
@ie.invoke('Name').should =~ /explorer/i
|
||||
it "get value by invoking 'Item' OLE method" do
|
||||
@dict.add('key', 'value')
|
||||
@dict.invoke('Item', 'key').should == 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user