summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/invoke_spec.rb
blob: a8fa6c7e799b808015a8db12c8088cf7af803890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative '../fixtures/classes'

platform_is :windows do
  require 'win32ole'

  describe "WIN32OLE#invoke" do
    before :each do
      @dict = WIN32OLESpecs.new_ole('Scripting.Dictionary')
    end

    it "get value by invoking 'Item' OLE method" do
      @dict.add('key', 'value')
      @dict.invoke('Item', 'key').should == 'value'
    end
  end
end