3021: Revert "3021: Do not drop/create API database at startup: run-tests.sh does...
authorTom Clegg <tom@curoverse.com>
Fri, 16 Jan 2015 01:22:19 +0000 (20:22 -0500)
committerTom Clegg <tom@curoverse.com>
Fri, 16 Jan 2015 01:22:19 +0000 (20:22 -0500)
This reverts commit 591446b97754292031a4214f08039adebd56cfe8.

apps/workbench/test/test_helper.rb

index 8acb2bfeaf3dbcbca499b02d0a66b8f748ab67d2..2b480f9b3934813400a50850a46dd6367861f751 100644 (file)
@@ -160,6 +160,8 @@ class ApiServerForTests
                 '--pid-file', @pidfile)
       else
         make_ssl_cert
+        _system('bundle', 'exec', 'rake', 'db:test:load')
+        _system('bundle', 'exec', 'rake', 'db:fixtures:load')
         _system('bundle', 'exec', 'passenger', 'start', '-d', '-p3000',
                 '--pid-file', @pidfile,
                 '--ssl',