test/tc/copydir.rb in rio-0.5.1 vs test/tc/copydir.rb in rio-0.6.0
- old
+ new
@@ -120,10 +120,10 @@
end
def test_files_a_file
dst = rio('files_a_fi').delete!.touch
dst < @d0.files[]
exp = %w[f0 f1].inject([]) { |lines,f| lines + rio(@d0,f).readlines }
- assert_equal(exp,dst.readlines)
+ assert_equal(exp.sort,dst.readlines.sort)
end
def test_files_a_nonex
dst = rio('files_a_nonex').delete!
src = @d0[]
assert_kind_of(::Array,src)