Sha256: 77349c129a1b77d27edf3586f9b2da345a5ab3277fe261919a352edbc4b14027
Contents?: true
Size: 784 Bytes
Versions: 2
Compression:
Stored size: 784 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.11.1 | test/ffi-gobject_introspection/gobject_type_init_test.rb |
gir_ffi-0.11.0 | test/ffi-gobject_introspection/gobject_type_init_test.rb |