aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv/test_row.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 09:34:38 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 09:34:38 +0000
commit7e3b185a257213bc3c18e06a0ea648fbbdf937ae (patch)
treeed6833c6a4e98c83574965eb5b40bf99d2a2bd14 /test/csv/test_row.rb
parent192c39532b012b4bec98f1912c61832d96466963 (diff)
downloadruby-7e3b185a257213bc3c18e06a0ea648fbbdf937ae.tar.gz
* test/csv/test_row.rb: Added some missing tests in CSV.
* test/csv/test_table.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/csv/test_row.rb')
-rwxr-xr-xtest/csv/test_row.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb
index d786f38cd4..3acceea234 100755
--- a/test/csv/test_row.rb
+++ b/test/csv/test_row.rb
@@ -347,4 +347,9 @@ class TestCSV::Row < TestCSV
def test_can_be_compared_with_other_classes
assert_not_nil(CSV::Row.new([ ], [ ]), "The row was nil")
end
+
+ def test_can_be_compared_when_not_a_row
+ r = @row == []
+ assert_equal false, r
+ end
end