Sha256: bd769636fd85562b6f3b3c7158ee5e27459aeaed199bd02009b5869289b082a1

Contents?: true

Size: 760 Bytes

Versions: 4

Compression:

Stored size: 760 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/reporters'
MiniTest::Unit.runner = MiniTest::SuiteRunner.new
MiniTest::Unit.runner.reporters << MiniTest::Reporters::SpecReporter.new
require 'remote_table'

class MiniTest::Spec
  def setup
    if RUBY_VERSION >= '1.9'
      @old_default_internal = Encoding.default_internal
      @old_default_external = Encoding.default_external
      # totally random choices here
      Encoding.default_internal = 'EUC-JP'
      Encoding.default_external = 'Shift_JIS'
    end
  end
  
  def teardown
    if RUBY_VERSION >= '1.9'
      Encoding.default_internal = @old_default_internal
      Encoding.default_external = @old_default_external
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
remote_table-2.0.2 test/helper.rb
remote_table-2.0.1 test/helper.rb
remote_table-2.0.0 test/helper.rb
remote_table-1.4.0 test/helper.rb