Sha256: fc8859b9bcc1f6a8153acadcb2c1efd722e7892f0f2b9d3e7669a4c6ad0cc58e
Contents?: true
Size: 564 Bytes
Versions: 4
Compression:
Stored size: 564 Bytes
Contents
require File.expand_path('../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
4 entries across 4 versions & 1 rubygems