diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 06:58:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 06:58:58 +0000 |
commit | d05217109fb5e909bbd7849bcc799b6404c7c8b0 (patch) | |
tree | 59c6e741e5c94660ea5860d745fffec33274121b /test/csv/base.rb | |
parent | 47a1cd1291f1f52cc8d36cb533e0d653d128930a (diff) |
* lib/csv.rb, test/csv: should not assume $, invariant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/csv/base.rb')
-rw-r--r-- | test/csv/base.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/csv/base.rb b/test/csv/base.rb new file mode 100644 index 0000000000..c0f5bd990b --- /dev/null +++ b/test/csv/base.rb @@ -0,0 +1,20 @@ +require "test/unit" + +require "csv" + +class TestCSV < Test::Unit::TestCase + module DifferentOFS + def setup + super + @ofs, $, = $,, "-" + end + def teardown + $, = @ofs + super + end + end + + def self.with_diffrent_ofs + Class.new(self).class_eval {include DifferentOFS} + end +end |