Commit 84b24c9
committed
We should assert for current car's funky bulb count, not overall bulb count
- Though has_many_associations test file does not use bulbs fixtures,
other files use it and if those files are run before
has_many_associations_test file then there can be some bulbs records
present in the database which are not associated with the current car
being tested. So the assertion `Car.count` was non-zero sometimes.1 parent b7a5bd6 commit 84b24c9
File tree
1 file changed
+4
-0
lines changed- activerecord/test/cases/associations
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
245 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
0 commit comments