Sha256: 05b8f5dd6698433a359eb1d3d31bd98fecb1801f2b63e9e710097bf95d18872d

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

ORIG_ARGV = ARGV.dup

curr = File.expand_path(File.dirname(__FILE__))
$:.unshift(curr) unless $:.include?('curr') || $:.include?(curr)
lib  = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)

require 'test/unit'

def with_kcode(code)
  if RUBY_VERSION < '1.9'
    begin
      old_kcode, $KCODE = $KCODE, code
      yield
    ensure
      $KCODE = old_kcode
    end
  else
    yield
  end
end

if RUBY_VERSION < '1.9'
  $KCODE = 'UTF8'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gorillib-0.0.7 test/abstract_unit.rb
gorillib-0.0.6 test/abstract_unit.rb
gorillib-0.0.5 test/abstract_unit.rb
gorillib-0.0.4 test/abstract_unit.rb
gorillib-0.0.3 test/abstract_unit.rb
gorillib-0.0.2 test/abstract_unit.rb