zbcmlq
Last Updated: February 25, 2016
·
1.226K
· petenicholls

Calculating truth table possibilities for testing in Ruby

The bottom line: use Array#repeated_permutation in Ruby 1.9, but a great write up all the same on how to test different combinations of predicate methods in RSpec.

http://vitobotta.com/applying-bitwise-operations-to-rspec-testing/