summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 13:08:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 13:08:07 +0000
commit7df8b94926b79f280ed0be387897fa3d0187fb44 (patch)
tree5721f9c1d9385a0b4e877263935a8d055f1d66ec /test/csv
parent36feefecb9db8f66dd228d4cfb3e185679dbdf0d (diff)
* 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
Diffstat (limited to 'test/csv')
-rw-r--r--test/csv/base.rb17
1 files changed, 3 insertions, 14 deletions
diff --git a/test/csv/base.rb b/test/csv/base.rb
index 1f83bab..31f949a 100644
--- a/test/csv/base.rb
+++ b/test/csv/base.rb
@@ -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