Red Squirrel Stumblog RSS

Dave Hoover stumbles through technology

Nov
14th
Wed
permalink

Do NOT require Rails models in Rails unit tests

When the test runs, it will load the class twice.  Loading the class twice means that all of the model’s lifecyle hooks will get called twice.