problem in application.rb when running unit tests

I keep getting an error in application.rb when I run my unit tests. It's because I have a query in there that depends on a record in my database. I know how to setup fixtures in my unit tests but is there a way to have fixtures load before application.rb gets loaded? Or is there some better way to handle this? Thanks, Mike