Sha256: 9db7f5c2fcb42a3f72df617c09cec26e45c9ba82f4291fe680005d4b6485a277

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.6 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.5 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.4 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.3 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.2 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.1 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.7.0 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.6.7 test/ffi-gobject_introspection/i_enum_info_test.rb