Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created December 9, 2008 17:09
Show Gist options
  • Save brandon-beacher/33969 to your computer and use it in GitHub Desktop.
Save brandon-beacher/33969 to your computer and use it in GitHub Desktop.
# populate test database before running tests
Rake::Task["db:test:prepare"].enhance do
Customer.establish_connection "test"
Domain.establish_connection "test"
PopulationHelper.populate
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment