require 'minitest/autorun'

require 'knapsack'

if RUBY_VERSION == "1.9.3"
  Minitest = MiniTest
  Minitest::Test = MiniTest::Unit::TestCase
end

Knapsack.tracker.config({
  enable_time_offset_warning: true,
  time_offset_in_seconds: 3
})
Knapsack.report.config({
  report_path: 'knapsack_minitest_report.json'
})

if ENV['CUSTOM_LOGGER']
  require 'logger'
  Knapsack.logger = Logger.new(STDOUT)
  Knapsack.logger.level = Logger::INFO
end

knapsack_adapter = Knapsack::Adapters::MinitestAdapter.bind
knapsack_adapter.set_test_helper_path(__FILE__)

require 'minitest/autorun'

require 'knapsack'

if RUBY_VERSION == "1.9.3"
  unless defined? Minitest
    Minitest = MiniTest
  end
  unless defined? Minitest::Test
    Minitest::Test = MiniTest::Unit::TestCase
  end
end

Knapsack.tracker.config({
  enable_time_offset_warning: true,
  time_offset_in_seconds: 3
})
Knapsack.report.config({
  report_path: 'knapsack_minitest_report.json'
})

if ENV['CUSTOM_LOGGER']
  require 'logger'
  Knapsack.logger = Logger.new(STDOUT)
  Knapsack.logger.level = Logger::INFO
end

knapsack_adapter = Knapsack::Adapters::MinitestAdapter.bind
knapsack_adapter.set_test_helper_path(__FILE__)

Fix warnings in Ruby 1.9.3 tests
 Fix warnings in Ruby 1.9.3 tests