mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
9c017ca5fb
commit
eadc639598
2 changed files with 5 additions and 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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue