Sha256: c08dcb5d943c3d69125bebb6e058a1e6219dd10f63e9e68d2f634a7a4276e01c

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

require 'introspection_test_helper'

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

    should "find a method by name" do
      result = @info.find_method("param")
      result.name.must_equal "param"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.6.5 test/ffi-gobject_introspection/i_enum_info_test.rb
gir_ffi-0.6.4 test/ffi-gobject_introspection/i_enum_info_test.rb