kytrinyx/approvals — pull request #8 by jeremyruppel (2012-12-14 01:05:04+00:00)
Title: Pass approved files through ERB

Hey @kytrinyx, I wanted to get your input on this.

I keep running into cases where I feel like it might be nice to have certain parts of an approval be dynamic. For instance, when using Rails fixtures with auto-generated `id`s; we care that the `id` is present and correct but we don't care what the actual value is.

I think an argument could be made that one of the main benefits of approval tests is that they are completely static, but I'm struggling to come up with strong reasons why as long as the approved file is more static than dynamic. Thoughts?