test/helper.rb in ardb-0.28.3 vs test/helper.rb in ardb-0.29.0

- old
+ new

@@ -5,21 +5,12 @@ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__)) TEST_SUPPORT_PATH = File.expand_path("../support", __FILE__) TMP_PATH = File.expand_path("../../tmp", __FILE__) -require 'logger' +require "logger" log_path = File.expand_path("../../log/test.log", __FILE__) -TEST_LOGGER = Logger.new(File.open(log_path, 'w')) +TEST_LOGGER = Logger.new(File.open(log_path, "w")) # require pry for debugging (`binding.pry`) -require 'pry' -require 'test/support/factory' - -# 1.8.7 backfills - -# Array#sample -if !(a = Array.new).respond_to?(:sample) && a.respond_to?(:choice) - class Array - alias_method :sample, :choice - end -end +require "pry" +require "test/support/factory"