rubyspec/rubyspec — pull request #145 by bak (2012-07-06 00:28:11+00:00)
Title: Changes to speccing of Array methods involving randomness.

Three commits in this PR, dealing with Array#choice (or Array#sample):

The first changes the description of specs to better reflect what is actually being tested, and simplifies the block to reveal the essence of the test.

The second is just a clarifying text change.

The third removes a complicated test for "randomness" in favor of a more simple example, showing that the #choice and #sample methods return distributed results. I understand that methods for testing randomness are by nature insufficient, and don't want to bikeshed, but still want to suggest the more understandable code.