Sha256: 1cd8233cf39e49f6734591a11154ecdce83c28d53439f7a94905cac4f129d272
Contents?: true
Size: 803 Bytes
Versions: 4
Compression:
Stored size: 803 Bytes
Contents
require File.expand_path('../test_helper.rb', File.dirname(__FILE__)) 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 tp = GObject.type_from_name 'GTypeModule' ifcs = GObject.type_interfaces tp 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
4 entries across 4 versions & 1 rubygems