Sha256: 581223183ea2ac933cf306fb6c298d355ac48d1b9f6cfe41403e02bcff02d2db
Contents?: true
Size: 1.26 KB
Versions: 9
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true require 'introspection_test_helper' describe GObjectIntrospection::IPropertyInfo do describe "for Regress::TestObj's 'double' property" do let(:property_info) { get_property_introspection_data 'Regress', 'TestObj', 'double' } it 'returns :gdouble as its type' do property_info.property_type.tag.must_equal :gdouble end it 'flags the property as readable' do property_info.readable?.must_equal true end it 'flags the property as writeable' do property_info.writeable?.must_equal true end it 'flags the property as not construct-only' do property_info.construct_only?.must_equal false end end describe "for GObject::Binding's 'target-property' property" do let(:property_info) do get_property_introspection_data 'GObject', 'Binding', 'target-property' end it 'returns :utf8 as its type' do property_info.property_type.tag.must_equal :utf8 end it 'flags the property as readable' do property_info.readable?.must_equal true end it 'flags the property as writeable' do property_info.writeable?.must_equal true end it 'flags the property as construct-only' do property_info.construct_only?.must_equal true end end end
Version data entries
9 entries across 9 versions & 1 rubygems