test/test_helper.rb in gir_ffi-0.0.4 vs test/test_helper.rb in gir_ffi-0.0.5

- old
+ new

@@ -1,9 +1,14 @@ require 'shoulda' require 'rr' require 'ffi' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) +if RUBY_PLATFORM == 'java' + require 'java' + JRuby.objectspace = true +end + # Since the tests will call Gtk+ functions, Gtk+ must be initialized. module DummyGtk module Lib extend FFI::Library