Sha256: 127f0d52835ff82788a5c0dcb8998f2adbd551d17cd075211a6b1d3d0ca25020
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
if RUBY_PLATFORM == 'java' require 'java' JRuby.objectspace = true require 'rubygems' end require 'minitest/spec' require 'minitest/autorun' require 'rr' require 'ffi' Thread.abort_on_exception = true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ffi-gobject_introspection' class MiniTest::Unit::TestCase include RR::Adapters::TestUnit def get_introspection_data namespace, name gir = GObjectIntrospection::IRepository.default gir.require namespace, nil gir.find_by_name namespace, name end def assert_nothing_raised yield assert true end def assert_not_nil it refute_nil it end end class MiniTest::Spec class << self alias :setup :before alias :teardown :after alias :should :it alias :context :describe end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.2.2 | test/test_helper.rb |
gir_ffi-0.2.1 | test/test_helper.rb |
gir_ffi-0.2.0 | test/test_helper.rb |
gir_ffi-0.1.0 | test/test_helper.rb |