Sha256: b59196d7a9e3fe3aba17a1a8fae928c244f8c42fdec01849525d9489d222848a

Contents?: true

Size: 418 Bytes

Versions: 9

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true
require 'introspection_test_helper'

describe GObjectIntrospection::IUnionInfo do
  let(:object_info) { get_introspection_data('GLib', 'Mutex') }

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

    it 'finds a method by name symbol' do
      object_info.find_method(:clear).wont_be_nil
    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_union_info_test.rb
gir_ffi-0.11.0 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.10.2 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.10.1 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.10.0 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.10.0.pre1 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.9.5 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.9.4 test/ffi-gobject_introspection/i_union_info_test.rb
gir_ffi-0.9.3 test/ffi-gobject_introspection/i_union_info_test.rb