mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/csv/test_data_converters.rb: use descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0b8233ab07
commit
2d89896461
7 changed files with 65 additions and 75 deletions
|
@ -50,16 +50,16 @@ class TestCSV::Interface < TestCSV
|
|||
csv = CSV.open(@path, "r+", col_sep: "\t", row_sep: "\r\n")
|
||||
assert_not_nil(csv)
|
||||
assert_instance_of(CSV, csv)
|
||||
assert_equal(false, csv.closed?)
|
||||
assert_not_predicate(csv, :closed?)
|
||||
csv.close
|
||||
assert(csv.closed?)
|
||||
assert_predicate(csv, :closed?)
|
||||
|
||||
ret = CSV.open(@path) do |new_csv|
|
||||
csv = new_csv
|
||||
assert_instance_of(CSV, new_csv)
|
||||
"Return value."
|
||||
end
|
||||
assert(csv.closed?)
|
||||
assert_predicate(csv, :closed?)
|
||||
assert_equal("Return value.", ret)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue