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

  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