Sha256: 0a9825369392b098c112bfddf33d136daf6663ca4e1f85ae23df833f946c5021
Contents?: true
Size: 762 Bytes
Versions: 13
Compression:
Stored size: 762 Bytes
Contents
require 'gir_ffi_test_helper' describe "The generated GObject module" do before do GirFFI.setup :GObject end describe "#type_interfaces" do it "works, showing that returning an array of GType works" do klass = GObject::TypeModule ifcs = GObject.type_interfaces klass.get_gtype assert_equal 1, ifcs.size end end describe "the TypePlugin interface" do it "is implemented as a module" do mod = GObject::TypePlugin assert_instance_of Module, mod refute_instance_of Class, mod end end describe "the TypeModule class" do it "has the GObject::TypePlugin module as an ancestor" do klass = GObject::TypeModule assert_includes klass.ancestors, GObject::TypePlugin end end end
Version data entries
13 entries across 13 versions & 1 rubygems