test/helper.rb in qs-0.6.1 vs test/helper.rb in qs-0.7.0

- old
+ new

@@ -10,5 +10,16 @@ ROOT_PATH = Pathname.new(File.expand_path('../..', __FILE__)) require 'test/support/factory' require 'json' # so the default encoder/decoder procs will work + +JOIN_SECONDS = 0.1 + +# 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