'--pid-file', @pidfile)
else
make_ssl_cert
- _system('bundle', 'exec', 'rake', 'db:test:load')
- _system('bundle', 'exec', 'rake', 'db:fixtures:load')
+ if ENV['ARVADOS_TEST_API_INSTALLED'].blank?
+ _system('bundle', 'exec', 'rake', 'db:test:load')
+ _system('bundle', 'exec', 'rake', 'db:fixtures:load')
+ end
_system('bundle', 'exec', 'passenger', 'start', '-d', '-p3000',
'--pid-file', @pidfile,
'--ssl',
ApiServerForTests.new.run
ApiServerForTests.new.run ["--websockets"]
end
+
+# Reset fixtures now (i.e., before any tests run).
+ActiveSupport::TestCase.reset_api_fixtures_now