array_test.rb 261 Bytes
require_relative "test_helper"

class TestArray < Minitest::Unit::TestCase
  include TestGroupdate

  def call_method(method, field, options)
    Hash[ User.all.to_a.send(:"group_by_#{method}", options){|u| u.send(field) }.map{|k, v| [k, v.size] } ]
  end

end