So, basically, if I don't call a method on the object, then it quietly swallows errors. So for example, if I'm doing something like:
When(:record) { create(:record) }
I have to make sure that every test uses it. What if one test wants to access the record, but another one just wants to do Record.count == 1? Then you wouldn't know why it isn't working since Record.count does not actually call record directly.
This seems kind of strange.
So, basically, if I don't call a method on the object, then it quietly swallows errors. So for example, if I'm doing something like:
I have to make sure that every test uses it. What if one test wants to access the record, but another one just wants to do Record.count == 1? Then you wouldn't know why it isn't working since Record.count does not actually call
record
directly.