Sha256: d6f58f5b8e646f654f4f6a86149b78185510e5d0a6f355c3fec4989d66a5a742

Contents?: true

Size: 573 Bytes

Versions: 4

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require "introspection_test_helper"

describe GObjectIntrospection::IStructInfo do
  let(:object_info) { get_introspection_data("GObject", "Closure") }

  describe "#find_method" do
    it "finds a method by name string" do
      _(object_info.find_method("new_simple")).wont_be_nil
    end

    it "finds a method by name symbol" do
      _(object_info.find_method(:new_simple)).wont_be_nil
    end
  end

  describe "#type_name" do
    it "returns the correct name" do
      _(object_info.type_name).must_equal "GClosure"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.15.2 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.15.1 test/ffi-gobject_introspection/i_struct_info_test.rb
gir_ffi-0.15.0 test/ffi-gobject_introspection/i_struct_info_test.rb