Sha256: f09570e7c16de0f27178a0b35880d9952543be7674d31337dba5282485d74f5b

Contents?: true

Size: 727 Bytes

Versions: 9

Compression:

Stored size: 727 Bytes

Contents

require File.expand_path('gir_ffi_test_helper.rb', File.dirname(__FILE__))

class GirFFITest < MiniTest::Spec
  context "GirFFI" do
    it "sets up cairo as Cairo" do
      GirFFI.setup :cairo
      assert Object.const_defined?(:Cairo)
    end

    it "sets up xlib, which has no shared library" do
      gir = GObjectIntrospection::IRepository.default
      gir.require 'xlib'
      assert_nil gir.shared_library('xlib'), "Precondition for test failed"
      GirFFI.setup :xlib
    end

    it "sets up dependencies" do
      save_module :GObject
      save_module :Regress
      GirFFI.setup :Regress
      assert Object.const_defined?(:GObject)
      restore_module :Regress
      restore_module :GObject
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.4.0 test/girffi_test.rb
gir_ffi-0.3.2 test/girffi_test.rb
gir_ffi-0.3.1 test/girffi_test.rb
gir_ffi-0.3.0 test/girffi_test.rb
gir_ffi-0.2.3 test/girffi_test.rb
gir_ffi-0.2.2 test/girffi_test.rb
gir_ffi-0.2.1 test/girffi_test.rb
gir_ffi-0.2.0 test/girffi_test.rb
gir_ffi-0.1.0 test/girffi_test.rb