Today I wanted to update my unit test to use instantiated fixtures, and I found this regular expression useful for replacing the non-instantiated fixture syntax fixture(:name) with the instantiated syntax @name.
I used the following pattern to find references to the non-instantiated fixtures:
I used the following pattern to replace each match with an instantiated fixture.

Comments