X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2ce797b91ad36d8b682f19b99732d2465b938019..1ec89c1c31669eb89bd1997cfa9d3c50f0204dbe:/apps/workbench/test/test_helper.rb?ds=sidebyside diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb index 8acb2bfeaf..7c454c9877 100644 --- a/apps/workbench/test/test_helper.rb +++ b/apps/workbench/test/test_helper.rb @@ -160,6 +160,10 @@ class ApiServerForTests '--pid-file', @pidfile) else make_ssl_cert + 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', @@ -309,3 +313,6 @@ if ENV["RAILS_ENV"].eql? 'test' ApiServerForTests.new.run ApiServerForTests.new.run ["--websockets"] end + +# Reset fixtures now (i.e., before any tests run). +ActiveSupport::TestCase.reset_api_fixtures_now