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:
parent
5119171d39
commit
0eef20af66
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue