Module: Prototok::Utils::TestHelper

Defined in:
lib/prototok/utils/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#option_combinationsObject



4
5
6
7
8
9
10
11
# File 'lib/prototok/utils/test_helper.rb', line 4

def option_combinations
  combinations = (versions + [nil]).map do |v|
    product_versions(v)
  end.flatten.each_slice(5).entries
  combinations.inject({}) do |aggr, options|
    aggr.merge!(itemize_options(prepare_options(options)))
  end
end