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