Skip to content

Instantly share code, notes, and snippets.

@sunaot
Created January 16, 2014 13:09
Show Gist options
  • Save sunaot/8454744 to your computer and use it in GitHub Desktop.
Save sunaot/8454744 to your computer and use it in GitHub Desktop.
全網羅のテストをしたいときこんなんすると組合せをつくってくれて便利。
test_cases = [
%w[ docomo softbank au emobile willcom ],
%w[ development production testing staging ],
%w[ jp uk de ],
]
test_cases.first.product(*test_cases[1..-1]) do |carrier, env, region|
p carrier: carrier,
env: env,
region: region
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment