Sha256: e170bcde623553316e61bf571f2597b737efc54f97706fdf1ac0ea65b9156d56
Contents?: true
Size: 941 Bytes
Versions: 9
Compression:
Stored size: 941 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' 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 describe '#gtype' do it 'returns the correct GType' do obj = GIMarshallingTests::OverridesObject.new object_class = GObject.object_class_from_instance obj object_class.gtype.must_equal GIMarshallingTests::OverridesObject.gtype end end end
Version data entries
9 entries across 9 versions & 1 rubygems