Sha256: d3373530bbe1335b5cb750b4ead70738065cbcd40ccc146417eb8619fdd98d7f

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

require 'gir_ffi_test_helper'

describe GirFFI::UserDefined::IObjectInfo do
  it "has the attribute #properties" do
    inf = GirFFI::UserDefined::IObjectInfo.new
    inf.properties.must_equal []
    inf.properties << :foo
    inf.properties.must_equal [:foo]
    inf.properties = [:bar, :baz]
    inf.properties.must_equal [:bar, :baz]
  end

  it "derives from GirFFI::UserDefined::IRegisteredTypeInfo" do
    inf = GirFFI::UserDefined::IObjectInfo.new
    inf.must_be_kind_of GirFFI::UserDefined::IRegisteredTypeInfo
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.5.2 test/gir_ffi/user_defined/i_object_info_test.rb
gir_ffi-0.5.1 test/gir_ffi/user_defined/i_object_info_test.rb
gir_ffi-0.5.0 test/gir_ffi/user_defined/i_object_info_test.rb
gir_ffi-0.4.3 test/gir_ffi/user_defined/i_object_info_test.rb
gir_ffi-0.4.2 test/gir_ffi/user_defined/i_object_info_test.rb
gir_ffi-0.4.1 test/gir_ffi/user_defined/i_object_info_test.rb