count_by_group = q.result_count_by_group
assert_kind_of Hash, count_by_group
assert_equal %w(NilClass User), count_by_group.keys.collect {|k| k.class.name}.uniq.sort
- assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
+ assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
assert count_by_group.has_key?(User.find(3))
end
count_by_group = q.result_count_by_group
assert_kind_of Hash, count_by_group
assert_equal %w(NilClass String), count_by_group.keys.collect {|k| k.class.name}.uniq.sort
- assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
+ assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
assert count_by_group.has_key?('MySQL')
end
count_by_group = q.result_count_by_group
assert_kind_of Hash, count_by_group
assert_equal %w(Date NilClass), count_by_group.keys.collect {|k| k.class.name}.uniq.sort
- assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
+ assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq
end
def test_issue_count_with_nil_group_only