Sha256: 234f2376b6dffa302a5e15006c20f208e055fe5ba57fc05ed17b4160c2fb811c
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
require File.expand_path('test_helper.rb', File.dirname(__FILE__)) describe GirFFI::Builder::Type::Object do describe "building GObject::TypeModule, which implements an interface" do before do info = get_function_introspection_data 'GObject', 'TypeModule' @bldr = GirFFI::Builder::Type::Object.new info end it "mixes the interface into the generated class" do klass = @bldr.build_class assert_includes klass.ancestors, GObject::TypePlugin end end describe "building the CharsetConverter class" do before do GirFFI.setup :Gio end it "includes two interfaces" do klass = Gio::CharsetConverter assert_includes klass.ancestors, Gio::Converter assert_includes klass.ancestors, Gio::Initable end it "allows an instance to find the #reset method" do cnv = Gio::CharsetConverter.new "utf8", "utf8" cnv.reset pass end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.10 | test/object_type_builder_test.rb |