test/helper.rb in deas-nm-0.5.2 vs test/helper.rb in deas-nm-0.5.3

- old
+ new

@@ -9,5 +9,14 @@ require 'test/support/factory' require 'pathname' TEST_SUPPORT_PATH = Pathname.new(File.expand_path('../support', __FILE__)) + +# 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