Sha256: 0bf54e9b42b814321c0585b6db044f8cb4805d35c9bbfc3910a5df8dddfdc970

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require 'rubygems' if RUBY_PLATFORM == 'java'

begin
  require 'simplecov'
  SimpleCov.start do
    add_filter '/test/'
  end
rescue LoadError
  nil # SimpleCov not available
end

require 'minitest/autorun'
require 'rr'

Thread.abort_on_exception = true

if ENV['GTK_VERSION'] == '2'
  require 'gir_ffi-gtk2'
else
  require 'gir_ffi-gtk3'
end

module BaseTestExtensions
  def assert_nothing_raised
    yield
    assert true
  end

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

Minitest::Test.send :include, BaseTestExtensions

Gtk.init

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.14.1 test/test_helper.rb
gir_ffi-gtk-0.14.0 test/test_helper.rb
gir_ffi-gtk-0.13.1 test/test_helper.rb
gir_ffi-gtk-0.13.0 test/test_helper.rb