Skip to content

Instantly share code, notes, and snippets.

@inre
Forked from brandon-beacher/gist:33969
Created December 11, 2008 03:02
Show Gist options
  • Save inre/34591 to your computer and use it in GitHub Desktop.
Save inre/34591 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