aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 08:33:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 08:33:58 +0000
commiteadc639598670c1ae04bbd2f73250eef1b1463a8 (patch)
treed73477c3b45bd76ed6c146dfb821d7977597b948
parent9c017ca5fb24e89463e5aee0304bd6a2305143df (diff)
downloadruby-eadc639598670c1ae04bbd2f73250eef1b1463a8.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/csv/base.rb2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 741980e6d2..881c9f7c7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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