Sha256: 91b97b842c680c1d61ee120b3758b757e09ae95ce09e43af62f3ee3c60423ffb
Contents?: true
Size: 699 Bytes
Versions: 8
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' # Tests generated methods and functions in the GTop namespace. This namespace # contains types with bad names, like 'glibtop_cpu'. describe 'The generated GTop module' do before do begin GirFFI.setup :GTop rescue skip 'No GIR data for GTop available' end end describe 'Glibtop' do it 'is a valid struct class' do GTop::Glibtop.ancestors.must_include GirFFI::StructBase end it 'can be created using Glibtop.init' do skip unless get_method_introspection_data 'GTop', 'glibtop', 'init' instance = GTop::Glibtop.init instance.must_be_kind_of GTop::Glibtop end end end
Version data entries
8 entries across 8 versions & 1 rubygems