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
|
@ -68,7 +68,7 @@ class TestCSV::DataConverters < TestCSV
|
|||
|
||||
def test_convert_with_builtin_integer
|
||||
# setup parser...
|
||||
assert(@parser.respond_to?(:convert))
|
||||
assert_respond_to(@parser, :convert)
|
||||
assert_nothing_raised(Exception) { @parser.convert(:integer) }
|
||||
|
||||
# and use
|
||||
|
@ -77,7 +77,7 @@ class TestCSV::DataConverters < TestCSV
|
|||
|
||||
def test_convert_with_builtin_float
|
||||
# setup parser...
|
||||
assert(@parser.respond_to?(:convert))
|
||||
assert_respond_to(@parser, :convert)
|
||||
assert_nothing_raised(Exception) { @parser.convert(:float) }
|
||||
|
||||
# and use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue