summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/_getproperty_spec.rb
blob: b7bd8044c48b6eb235e3dee4b39100aabc108b01 (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#_getproperty" do
    before :each do
      @dict = WIN32OLESpecs.new_ole('Scripting.Dictionary')
    end

    it "gets value" do
      @dict.add('key', 'value')
      @dict._getproperty(0, ['key'], [WIN32OLE::VARIANT::VT_BSTR]).should == 'value'
    end
  end
end