Sha256: 03dec08b50397201dc1d9ae856867cfb0e07438b17777b48f22e3c1d46b2444d

Contents?: true

Size: 665 Bytes

Versions: 4

Compression:

Stored size: 665 Bytes

Contents

# frozen_string_literal: true

require "gir_ffi_test_helper"

GirFFI.setup :GTop

# 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
  describe "Glibtop" do
    it "is a valid struct class" do
      # Superclass is either BoxedBase or StructBase, depending on library
      # versions. This means StructBase is always one of the ancestors.
      assert GTop::Glibtop < GirFFI::StructBase
    end

    it "can be created using Glibtop.init" do
      instance = GTop::Glibtop.init
      _(instance).must_be_kind_of GTop::Glibtop
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 test/integration/generated_gtop_test.rb
gir_ffi-0.15.2 test/integration/generated_gtop_test.rb
gir_ffi-0.15.1 test/integration/generated_gtop_test.rb
gir_ffi-0.15.0 test/integration/generated_gtop_test.rb