I’m new at the project that has some spec coverage and when i run all of the specs, all the comparation fails with the same
ActiveRecord::AssociationTypeMismatch “x” expected, got “x”, e.g.:
ActiveRecord::AssociationTypeMismatch:
User(#103950560) expected, got User(#107825100)
There is one spec, that when being excluded makes all work. And itself when run separately works fine.
I can’t post here it’s content i guess though 8(
cache_classes = true resolves this.
My coworkers on Macs do not have this bug, while me and a couple of people on Ubuntu have.
I had the same issue, I have updated
factory_girl_railsto the latest version, bumping upfactory_girlfrom2.6.4to3.2.0and it fixed it!