test/testclose.rb in rb_cdio-0.1.1 vs test/testclose.rb in rb_cdio-0.2.0
- old
+ new
@@ -1,5 +1,10 @@
-require "../ext/rb_cdio"
+if(File::exists?("../ext/rb_cdio.so"))
+ require "../ext/rb_cdio"
+else
+ require 'rubygems'
+ require_gem "rb_cdio",">=0.2"
+end
require 'test/unit'
class Testtoc < Test::Unit::TestCase
def setup
@file = File.dirname(__FILE__)+"/data/isofs-m1.cue"