Fixtures outside of rails


Is anyone using fixtures in unit tests for applications using
ActiveRecord outside of rails? I found an example to do this from some
old threads. They cite as an example:

However, I copied this exactly and can still not get fixtures to work by
putting ‘fixtures :my_model’ at the top of my test class. They do work
however if I create them explicitely in each test method through the
create_fixtures method.

Any help would be appreciated.