# Will work
Rails.env = 'test'
Rake::Task["db:drop"].execute
# Will NOT work as it will use "test"
Rails.env = 'dev'