test/helper.rb in and-son-0.9.0 vs test/helper.rb in and-son-0.9.1

- old
+ new

@@ -5,5 +5,16 @@ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__)) require 'pry' # require pry for debugging (`binding.pry`) require 'test/support/factory' + +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