I think we can make the error message more clear if actual appears to be missing. While it may actually be missing, it could also have returned nil and now appears to be missing.
Currently:
The assertion table must include 'expected' and 'actual'. Missing: 'actual'
but yeah, indicating that it might be returning nil could help the test writer from some confusion.
I think we can make the error message more clear if
actualappears to be missing. While it may actually be missing, it could also have returnedniland now appears to be missing.Currently:
but yeah, indicating that it might be returning
nilcould help the test writer from some confusion.