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/
Written by Pete
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#