1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/with_diffent_ofs.rb (DifferentOFS): test suite for test

suites affected by $,.
* test/digest/test_digest_extend.rb (TestDigestExtend): should not
  assume $, invariant.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-25 13:08:07 +00:00
parent 36feefecb9
commit 7df8b94926
4 changed files with 38 additions and 18 deletions

View file

@ -2,19 +2,8 @@ require "test/unit"
require "csv"
class TestCSV < Test::Unit::TestCase
module DifferentOFS
def setup
super
@ofs, $, = $,, "-"
end
def teardown
$, = @ofs
super
end
end
require_relative "../with_diffent_ofs.rb"
def self.with_diffrent_ofs
const_set(:DifferentOFS, Class.new(self).class_eval {include DifferentOFS}).name
end
class TestCSV < Test::Unit::TestCase
include DifferentOFS
end