test/tc/symlink.rb in rio-0.3.6 vs test/tc/symlink.rb in rio-0.3.7
- old
+ new
@@ -7,14 +7,13 @@
require 'rio'
require 'test/unit'
require 'test/unit/testsuite'
class TC_RIO_symlink < Test::Unit::TestCase
- require 'extensions/symbol'
def assert!(a,msg="negative assertion")
assert((!(a)),msg)
end
- def smap(a) a.map( &:to_s ) end
+ def smap(a) a.map { |el| el.to_s } end
def tdir() rio(%w/qp symlink/) end
def mkafile(*args)
file = rio(*args)
file < (0..1).map { |i| "L#{i}:#{file.to_s}\n" }
file