diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 15:09:34 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 15:09:34 +0000 |
commit | 7d3d3535584bd70d0a9a0f5f9abc3aeeea115c5a (patch) | |
tree | b2f1a5c1c3c8816f2fb2a23f16be169cc89ed9c8 /test/csv/tc_row.rb | |
parent | aa2797ee41a531ac05b4a92ad713a4b9f3c9f756 (diff) | |
download | ruby-7d3d3535584bd70d0a9a0f5f9abc3aeeea115c5a.tar.gz |
* lib/csv/csv.rb: Added support for Encoding::default_internal.
* lib/csv/csv.rb: Switched to new Hash syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/csv/tc_row.rb')
-rw-r--r-- | test/csv/tc_row.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/csv/tc_row.rb b/test/csv/tc_row.rb index 3fa3784bba..bd0aad4104 100644 --- a/test/csv/tc_row.rb +++ b/test/csv/tc_row.rb @@ -145,7 +145,7 @@ class TestCSVRow < Test::Unit::TestCase %w{Header Field} ], @row.to_a ) # a pair with Hash syntax - assert_equal(@row, @row << {:key => :value}) + assert_equal(@row, @row << {key: :value}) assert_equal( [ ["A", 1], ["B", 2], ["C", 3], @@ -279,7 +279,7 @@ class TestCSVRow < Test::Unit::TestCase # with options assert_equal( "1|2|3|4|\r\n", - @row.to_csv(:col_sep => "|", :row_sep => "\r\n") ) + @row.to_csv(col_sep: "|", row_sep: "\r\n") ) end def test_array_delegation |