* test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to

anonymous classes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-25 08:33:58 +00:00
Родитель 9c017ca5fb
Коммит eadc639598
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,7 @@
Sat Dec 25 17:32:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sat Dec 25 17:33:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to
anonymous classes.
* lib/csv.rb (CSV#init_separators): use IO#gets with length
parameter to get rid of wrong convertion.

Просмотреть файл

@ -15,6 +15,6 @@ class TestCSV < Test::Unit::TestCase
end
def self.with_diffrent_ofs
Class.new(self).class_eval {include DifferentOFS}
const_set(:DifferentOFS, Class.new(self).class_eval {include DifferentOFS}).name
end
end