I would propose: [issue_open, issue_closed, issue_resolved].permutation(2).each do |transition| for the same effect.