Closed kellyredding closed 9 years ago
@kellyredding - As long as assert doesn't use sample
anywhere in its lib code I'm good with this :boom:
@jcredding good thought - I checked and sample
is only used in the test code. Which makes sense given the random nature of sample
.
The test suite was updated to use
Array#sample
instead ofArray#choice
in 239 so that the test suite would pass in modern ruby versions. However, I would prefer that the test suite continues to pass in ruby 1.8.7 as well.This backfills the
sample
method so that tests will pass in 1.8.7.See #239 for reference.
@jcredding ready for review. You good with this backfill implementation?