test/tc/csv2.rb in rio-0.3.3 vs test/tc/csv2.rb in rio-0.3.4

- old
+ new

@@ -25,12 +25,12 @@ def test_read rio('src1.csv') < @src rio('src1.csv') > rio('dst.csv') - assert_equal(@string,rio('dst.csv').slurp) - assert_equal(@string,rio('dst.csv').csv.slurp) + assert_equal(@string,rio('dst.csv').contents) + assert_equal(@string,rio('dst.csv').csv.contents) assert_equal(@lines,rio('dst.csv')[]) assert_equal(@strings,rio('dst.csv').chomp[]) assert_equal(@lines,rio('dst.csv').to_a) assert_equal(@strings,rio('dst.csv').chomp.to_a) assert_equal(@lines,rio('dst.csv').readlines) @@ -94,11 +94,11 @@ end def test_getrec rio('src1.csv') < @src - assert_equal(@string,rio('src1.csv').slurp) - assert_equal(@string,rio('src1.csv').csv.slurp) + assert_equal(@string,rio('src1.csv').contents) + assert_equal(@string,rio('src1.csv').csv.contents) assert_equal(@lines[0],rio('src1.csv').getrec) assert_equal(@strings[0],rio('src1.csv').chomp.getrec) assert_equal(@lines[1],rio('src1.csv').lines(1).getrec) assert_equal(@lines[1],rio('src1.csv').records(1).getrec)