Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

these are not real developer objects, so counting them doesn't make

sense.  Let's load the object to ensure it's an array and count the
array.
  • Loading branch information...
commit 71cf717ee297bc2407de304e5a880f1e39ab4f3c 1 parent 863ea1b
@tenderlove tenderlove authored
View
2  activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -651,7 +651,7 @@ def test_find_scoped_grouped
end
def test_find_scoped_grouped_having
- assert_equal 2, projects(:active_record).well_payed_salary_groups.size
+ assert_equal 2, projects(:active_record).well_payed_salary_groups.to_a.size
assert projects(:active_record).well_payed_salary_groups.all? { |g| g.salary > 10000 }
end
Please sign in to comment.
Something went wrong with that request. Please try again.