X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3ba5aa15ea0156a4fce63dcb43b7f972b4c760df..1eedd481146bc30cd2548c44399949cbfa2d576b:/apps/workbench/test/test_helper.rb diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb index e833f970c0..7f23988837 100644 --- a/apps/workbench/test/test_helper.rb +++ b/apps/workbench/test/test_helper.rb @@ -1,4 +1,5 @@ -ENV["RAILS_ENV"] = "test" +ENV["RAILS_ENV"] = "test" if !ENV["RAILS_ENV"] + unless ENV["NO_COVERAGE_TEST"] begin require 'simplecov' @@ -70,6 +71,9 @@ class ActiveSupport::TestCase arvados_api_token: api_fixture('api_client_authorizations')[api_client_auth_name.to_s]['api_token'] } end + def json_response + Oj.load(@response.body) + end end class ApiServerForTests @@ -148,4 +152,6 @@ class ApiServerForTests end end -ApiServerForTests.run +if ENV["RAILS_ENV"].eql? 'test' + ApiServerForTests.run +end