Sha256: ed2cbfc87e189d0f6bc10d03afa3249a6ed3d15b4f79f66558024cb725d880c8

Contents?: true

Size: 785 Bytes

Versions: 9

Compression:

Stored size: 785 Bytes

Contents

# frozen_string_literal: true

require 'introspection_test_helper'

describe GObjectIntrospection::GObjectTypeInit do
  describe 'Lib' do
    it 'represents the gobject-2.0 library' do
      GObjectIntrospection::GObjectTypeInit::Lib.ffi_libraries.first.name.
        must_match(/gobject-2\.0/)
    end

    it 'provides the g_type_init function' do
      GObjectIntrospection::GObjectTypeInit::Lib.must_respond_to :g_type_init
    end
  end

  describe '.type_init' do
    it 'calls the g_type_init function from the gobject-2.0 library' do
      allow(GObjectIntrospection::GObjectTypeInit::Lib).to receive(:g_type_init)

      GObjectIntrospection::GObjectTypeInit.type_init

      expect(GObjectIntrospection::GObjectTypeInit::Lib).to have_received(:g_type_init)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.14.0 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.13.1 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.13.0 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.12.1 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.12.0 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.11.4 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.11.3 test/ffi-gobject_introspection/gobject_type_init_test.rb
gir_ffi-0.11.2 test/ffi-gobject_introspection/gobject_type_init_test.rb