-ENV["RAILS_ENV"] = "test"
+ENV["RAILS_ENV"] = "test" if !ENV["RAILS_ENV"]
+
unless ENV["NO_COVERAGE_TEST"]
begin
require 'simplecov'
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
end
end
-ApiServerForTests.run
+if ENV["RAILS_ENV"].eql? 'test'
+ ApiServerForTests.run
+end