test/helper.rb in deas-kramdown-0.1.1 vs test/helper.rb in deas-kramdown-0.1.2

- old
+ new

@@ -14,6 +14,13 @@ # require pry for debugging (`binding.pry`) require 'pry' require 'test/support/factory' -# TODO: put test helpers here... +# 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