diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/csv/base.rb | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -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. diff --git a/test/csv/base.rb b/test/csv/base.rb index c0f5bd990b..1f83bab4a9 100644 --- a/test/csv/base.rb +++ b/test/csv/base.rb @@ -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 |