Sha256: 04426d7bf549d63726ffde7877eed7133acbbdce8b2ee838bcf274d6de44de94

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 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' do
      object_info.find_vfunc('finalize').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

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.8.1 test/ffi-gobject_introspection/i_object_info_test.rb
gir_ffi-0.8.0 test/ffi-gobject_introspection/i_object_info_test.rb
gir_ffi-0.7.10 test/ffi-gobject_introspection/i_object_info_test.rb
gir_ffi-0.7.9 test/ffi-gobject_introspection/i_object_info_test.rb
gir_ffi-0.7.8 test/ffi-gobject_introspection/i_object_info_test.rb