Sha256: fd34a743e73874e364a48f6ce4a2167e6d9cf49b5189f7ea4bbb358c19d164a5

Contents?: true

Size: 563 Bytes

Versions: 9

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true
require 'introspection_test_helper'

describe GObjectIntrospection::IStructInfo do
  let(:object_info) { get_introspection_data('GObject', 'Closure') }

  describe '#find_method' do
    it 'finds a method by name string' do
      object_info.find_method('new_simple').wont_be_nil
    end

    it 'finds a method by name symbol' do
      object_info.find_method(:new_simple).wont_be_nil
    end
  end

  describe '#type_name' do
    it 'returns the correct name' do
      object_info.type_name.must_equal 'GClosure'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.11.0 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.10.2 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.10.1 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.10.0 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.10.0.pre1 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.9.5 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.9.4 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.9.3 test/ffi-gobject_introspection/i_struct_info_test.rb