Closed seanpdoyle closed 3 years ago
Dig it! Is there someplace we need to update the documentation too?
This was some of the first Rails related code I wrote way back in 2013 and now I shudder that I didn't just fix [id=?]
instead of that :match('id', ?)
monstrosity 😂
@kaspth great question!
This repository seems light on documentation. I can't find any mention of substitutions in assertions in the README, and the link back to Rails is for the 4.2 release.
Is there somewhere in Rails that mentions substitutions?
Yes, that's it!
Add substitution support for
Symbol
andNumeric
. It can be convenient to pass in the value of anActiveRecord::Base#id
, or aSymbol
declared elsewhere in the test.