test/KeyTest.rb in rubyfb-0.6.3 vs test/KeyTest.rb in rubyfb-0.6.4
- old
+ new
@@ -120,13 +120,13 @@
assert(array.include?(['COL01', 1]))
assert(array.include?(['COL02', 'Two']))
assert(array.include?(['COL03', 3]))
hash = data.to_hash
- assert(hash.length == 3)
- assert(hash['COL01'] == 1)
- assert(hash['COL02'] == 'Two')
- assert(hash['COL03'] == 3)
+ assert_equal(3, hash.length)
+ assert_equal(1, hash['COL01'])
+ assert_equal('Two', hash['COL02'])
+ assert_equal(3, hash['COL03'])
array = data.values_at('COL10', 'COL02', 'COL03')
assert(array.size == 3)
assert(array.include?('Two'))
assert(array.include?(3))