Sha256: 7032d0530c893a663e4b0a63fea4f5de4c2d41fa48ee8f6f6c616fbe7d98e0b3

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

require 'introspection_test_helper'

describe GObjectIntrospection::IEnumInfo do
  describe '#find_method' do
    before do
      gir = GObjectIntrospection::IRepository.default
      gir.require 'Regress', nil
      @info = gir.find_by_name 'Regress', 'TestEnum'
    end

    it 'finds a method by name' do
      result = @info.find_method('param')
      result.name.must_equal 'param'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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