Sha256: a39c419e78763307bcae3d04a2d7b9c6d057b3df3ad0a21ca2c54f8aeff04a06
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
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" end def test_close_block CdIo.open(@file) {| cd | assert(cd.kind_of?(CdIo::Cd),"cd is not a CdIo::Cd") } end def test_close_method cd=CdIo::Cd.new(@file) assert(cd.kind_of?(CdIo::Cd),"cd is not CdIo::Cd") cd.close assert(cd.nil?,"cd not nil") end end
Version data entries
4 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rb_cdio-0.2.0 | ./test/testclose.rb |
rb_cdio-0.2.1 | ./test/test_close.rb |
rb_cdio-0.2.1 | test/test_close.rb |
rb_cdio-0.2.0 | test/testclose.rb |