Closed rjsmith closed 9 years ago
Thanks for bringing this up. I'll work on a fix and get a new release out asap.
All tests passing now -- including the new one. I just learnt something new: fit
and fdescribe
!!
Thank you so much for submitting a bug report with a test. That's just ... words fail me, but it made me very happy.
Found in 0.7.1
When the
tx.checkPermission
fn is called from the_meteorTransactionsProcess
Meteor method (via thetx.checkTransactionFields
internal method for an 'insert' action, the expected 'doc' parameter isundefined
.The following test spec is failing at the
expect(doc).toBeDefined();
line.Note that the first
checkPermission
call, when the insert action is added to the transaction stack works fine. But when thecheckPermission
is invoked again during the commit, it fails. I think this is a bug.