1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

When verifying size of relation, also verify count is ok.

This commit is contained in:
Vipul A M 2016-01-25 13:41:21 +05:30
parent 5119171d39
commit 0eef20af66

View file

@ -284,6 +284,7 @@ class ReflectionTest < ActiveRecord::TestCase
@hotel.mocktail_designers << MocktailDesigner.create!
assert_equal 1, @hotel.mocktail_designers.size
assert_equal 1, @hotel.mocktail_designers.count
assert_equal 1, @hotel.chef_lists.size
end