Sha256: e0a7a5c11daafae0abc8024e5eb0aa7167a5551d0c8d255ae02e8d9a28da5674
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__)) require 'ffi-gobject' describe GObject::ObjectClass do describe "#list_properties" do it "returns GIMarshallingTests::OverridesObject's properties" do obj = GIMarshallingTests::OverridesObject.new object_class = GObject.object_class_from_instance obj info = get_introspection_data 'GIMarshallingTests', 'OverridesObject' expected_props = info.properties.map(&:name) expected_props += info.parent.properties.map(&:name) props = object_class.list_properties prop_names = props.map(&:get_name) prop_names.sort.must_equal expected_props.sort end end end
Version data entries
4 entries across 4 versions & 1 rubygems