test/helper.rb in romo-0.15.8 vs test/helper.rb in romo-0.15.9
- old
+ new
@@ -4,5 +4,16 @@
# add the root dir to the load path
$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
# 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