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

Version Path
gir_ffi-0.11.1 test/integration/generated_gtop_test.rb
gir_ffi-0.10.2 test/integration/generated_gtop_test.rb
gir_ffi-0.10.1 test/integration/generated_gtop_test.rb
gir_ffi-0.10.0 test/integration/generated_gtop_test.rb
gir_ffi-0.10.0.pre1 test/integration/generated_gtop_test.rb
gir_ffi-0.9.5 test/integration/generated_gtop_test.rb
gir_ffi-0.9.4 test/integration/generated_gtop_test.rb
gir_ffi-0.9.3 test/integration/generated_gtop_test.rb