Sha256: 8ca2116299398af5dfc3752daa28f6626a90d7c4efe1c66f35f3304d687498f1

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

require 'introspection_test_helper'

describe GObjectIntrospection::ITypeInfo do
  describe "#name?" do
    let(:object_info) { get_introspection_data('GIMarshallingTests', 'Object') }
    let(:vfunc_info) { object_info.find_vfunc('vfunc_array_out_parameter') }
    let(:arg_info) { vfunc_info.args[0] }
    let(:type_info) { arg_info.argument_type }

    it "raises an error" do
      skip unless vfunc_info
      proc {
        type_info.name
      }.must_raise RuntimeError
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 test/ffi-gobject_introspection/i_type_info_test.rb
gir_ffi-0.7.6 test/ffi-gobject_introspection/i_type_info_test.rb