test/test_helper.rb in gir_ffi-gtk-0.8.1 vs test/test_helper.rb in gir_ffi-gtk-0.9.0
- old
+ new
@@ -13,10 +13,12 @@
require 'minitest/autorun'
require 'rr'
Thread.abort_on_exception = true
-unless Object.const_defined? :Gtk
+if ENV['GTK_VERSION'] == '2'
+ require 'gir_ffi-gtk2'
+else
require 'gir_ffi-gtk3'
end
class Minitest::Test
def assert_nothing_raised