Sha256: 9cabefe57b75f3e51fa4650be07ab17de5fb3875f31eb951f3ffe37308213011
Contents?: true
Size: 776 Bytes
Versions: 6
Compression:
Stored size: 776 Bytes
Contents
require 'introspection_test_helper' describe GObjectIntrospection::IObjectInfo do let(:object_info) { get_introspection_data('GObject', 'Object') } describe '#find_vfunc' do it 'finds a vfunc by name string' do object_info.find_vfunc('finalize').wont_be_nil end it 'finds a vfunc by name symbol' do object_info.find_vfunc(:finalize).wont_be_nil end end describe '#find_method' do it 'finds a method by name string' do object_info.find_method('bind_property').wont_be_nil end it 'finds a method by name symbol' do object_info.find_method(:bind_property).wont_be_nil end end describe '#type_name' do it 'returns the correct name' do object_info.type_name.must_equal 'GObject' end end end
Version data entries
6 entries across 6 versions & 1 rubygems