Skip to content
Browse files

Set up test db when running rake

  • Loading branch information...
1 parent 76fe686 commit 2f2abda054a731adb025c5e8a4a853a6ef3de550 @smartinez87 committed Aug 2, 2011
Showing with 8 additions and 4 deletions.
  1. +3 −3 Gemfile.lock
  2. +4 −0 Rakefile
  3. +1 −1 test/dummy/Gemfile.lock
View
6 Gemfile.lock
@@ -2,7 +2,7 @@ PATH
remote: .
specs:
exception_notification (2.4.1)
- actionmailer (~> 3.0.9)
+ actionmailer (>= 3.0.4)
GEM
remote: http://rubygems.org/
@@ -79,5 +79,5 @@ PLATFORMS
DEPENDENCIES
exception_notification!
- rails (~> 3.0.9)
- sqlite3 (~> 1.3.4)
+ rails (>= 3.0.4)
+ sqlite3 (>= 1.3.4)
View
4 Rakefile
@@ -3,6 +3,10 @@ Bundler::GemHelper.install_tasks
require 'rake/testtask'
+unless File.exists? "test/dummy/db/test.sqlite3"
+ sh "cd test/dummy; rake db:migrate; rake db:test:prepare; cd ../../;"
+end
+
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
View
2 test/dummy/Gemfile.lock
@@ -2,7 +2,7 @@ PATH
remote: ../../..
specs:
exception_notification (2.4.1)
- actionmailer (~> 3.0.9)
+ actionmailer (>= 3.0.4)
GEM
remote: http://rubygems.org/

0 comments on commit 2f2abda

Please sign in to comment.
Something went wrong with that request. Please try again.