Sha256: 3bcaf208359bf4f68403e2e5600428add2e1300aa930b3f21693d36097532671

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

require File.expand_path('test_helper.rb', File.dirname(__FILE__))

describe GirFFI::Builder::Type::Interface do
  before do
    info = get_introspection_data 'GObject', 'TypePlugin'
    @bldr = GirFFI::Builder::Type::Interface.new info
    @iface = @bldr.build_class
  end

  it "builds an interface as a module" do
    assert_instance_of Module, @iface
  end

  it "creates methods on the interface" do
    assert_includes @iface.instance_methods.map(&:to_s), 'complete_interface_info'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.0.14 test/interface_type_builder_test.rb
gir_ffi-0.0.13 test/interface_type_builder_test.rb
gir_ffi-0.0.12 test/interface_type_builder_test.rb
gir_ffi-0.0.11 test/interface_type_builder_test.rb