Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update db:test:prepare to hardcode rails_env to test

  • Loading branch information...
commit dd21507786a914594c4dc36ed05bde89d75ed6ac 1 parent 87fbff6
@bcurren bcurren authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/sequel-rails/railties/database.rake
View
5 lib/sequel-rails/railties/database.rake
@@ -11,7 +11,10 @@ namespace :db do
task :setup => [ 'db:create', 'db:migrate', 'db:seed' ]
namespace :test do
- task :prepare => ['db:setup']
+ task :prepare do
+ Rails.env = "test"
+ Rake::Task["db:setup"].invoke
+ end
end
namespace :create do
Please sign in to comment.
Something went wrong with that request. Please try again.