Sha256: aa2be974a0998356881ec811bea452ad08a56153b1396e27386db5d1ee05628a

Contents?: true

Size: 667 Bytes

Versions: 3

Compression:

Stored size: 667 Bytes

Contents

require 'introspection_test_helper'

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

      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) {
        get_introspection_data('GIMarshallingTests', 'Enum')
      }

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.7.9 test/ffi-gobject_introspection/i_registered_type_info_test.rb
gir_ffi-0.7.8 test/ffi-gobject_introspection/i_registered_type_info_test.rb