Sha256: 3ee87e02f8da862fc871dd6664dd1afab71a63c91d1662ee9383b255a4cf1c52

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))

describe GirFFI::Builder::Type::Object do
  before do
    GirFFI.setup :Regress
  end

  describe "#setup_method" do
    it "sets up singleton methods defined in a class's parent" do
      info = get_introspection_data 'Regress', 'TestSubObj'
      assert_nil info.find_method "static_method"
      parent = info.parent
      assert_not_nil parent.find_method "static_method"

      b = GirFFI::Builder::Type::Object.new(info)
      b.setup_method "static_method"
      pass
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-0.1.0 test/unit/object_type_builder_test.rb