Sha256: 4ae2e652d91eac15ca0d746b895acd658c4f0fd2cc1821b01b7737a23495b204

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

# coding: utf-8
require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))

require 'gir_ffi'

GirFFI.setup :Gdk
GirFFI.setup :Pango
Gdk.init []

# Tests generated methods and functions in the Pango namespace.
describe "Building classes in the Pango namespace" do
  describe "the relevant Pango::FontMap subclass" do
    it "is a descendant from Pango::FontMap" do
      ctx = Gdk.pango_context_get
      result = ctx.get_font_map
      result.class.ancestors.must_include Pango::FontMap
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.4.0 test/integration/generated_pango_test.rb
gir_ffi-0.3.2 test/integration/generated_pango_test.rb
gir_ffi-0.3.1 test/integration/generated_pango_test.rb
gir_ffi-0.3.0 test/integration/generated_pango_test.rb