aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv/base.rb
blob: 1f83bab4a9b8cff5d8af41a1ff53ae5178d94062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
    const_set(:DifferentOFS, Class.new(self).class_eval {include DifferentOFS}).name
  end
end