Skip to content

Commit

Permalink
Simplify foreach test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPer committed Jun 4, 2024
1 parent cadc0e3 commit b86b34c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/csv/interface/test_read.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def test_foreach_stringio
string_io = StringIO.new(@data)

rows = []
CSV.foreach(string_io, col_sep: "\t", row_sep: "\r\n") do |row|
rows << row
end
rows = CSV.foreach(string_io, col_sep: "\t", row_sep: "\r\n").to_a
assert_equal(@rows, rows)
end

Expand Down

0 comments on commit b86b34c

Please sign in to comment.