Sha256: 3371beddf6789929a0112dc1df0e78161b3d8c868b3ab668952ee3bbef591a2a

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

if RUBY_PLATFORM == 'java'
  require 'rubygems'
end

begin
  require 'simplecov'
  SimpleCov.start do
    add_filter "/test/"
  end
rescue LoadError
end

require 'minitest/autorun'
require 'rr'

Thread.abort_on_exception = true

unless Object.const_defined? :Gtk
  require 'gir_ffi-gtk3'
end

class Minitest::Test
  def assert_nothing_raised
    yield
    assert true
  end

  def ref_count object
    GObject::Object::Struct.new(object.to_ptr)[:ref_count]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.8.1 test/test_helper.rb
gir_ffi-gtk-0.8.0 test/test_helper.rb
gir_ffi-gtk-0.7.2 test/test_helper.rb