Sha256: 6aa278e29cffe6768799d398047f66b9e1aa15ef9c66fa23f1fab728cacc7372

Contents?: true

Size: 673 Bytes

Versions: 10

Compression:

Stored size: 673 Bytes

Contents

require 'introspection_test_helper'

describe GObjectIntrospection::IRegisteredTypeInfo do
  describe '#get_type_name' do
    describe 'for an interface' do
      let(:registered_type_info) do
        get_introspection_data('GIMarshallingTests', 'Interface')
      end

      it 'returns interface name' do
        registered_type_info.type_name.must_equal 'GIMarshallingTestsInterface'
      end
    end

    describe 'for a type that is not an interface' do
      let(:registered_type_info) do
        get_introspection_data('GIMarshallingTests', 'Enum')
      end

      it 'returns nil' do
        registered_type_info.type_name.must_be_nil
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.9.1 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.9.0 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.6 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.5 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.4 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.3 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.2 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.1 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.8.0 test/ffi-gobject_introspection/i_registered_type_info_test.rb