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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs