diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 06:34:27 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 06:34:27 +0000 |
commit | aef88415856b8a3e1616ec2d9a2ec0d6fa855a3b (patch) | |
tree | 9e7152bf1dd21776c173a0959cdd864721f4ed3b /test | |
parent | 4aa91c20eaf9b921eaacbc37c58378623e48e42b (diff) | |
download | ruby-aef88415856b8a3e1616ec2d9a2ec0d6fa855a3b.tar.gz |
Fixed equality method fails when given the object that doesn't support table method.
[Bug #12422][ruby-core:75707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rwxr-xr-x | test/csv/test_features.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb index 3f9359faaf..8acd744b73 100755 --- a/test/csv/test_features.rb +++ b/test/csv/test_features.rb @@ -374,4 +374,7 @@ class TestCSV::Features < TestCSV assert_equal [["line", "1", "a"], ["line", "2", "b"]], c.each.to_a end + def test_table_nil_equality + assert_nothing_raised(NoMethodError) { CSV.parse("test", headers: true) == nil } + end end |