X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c066a2e6d064a270638baea8f8b0d106f5903e0f..17cd77ac947e2c8f4ca51aa930ffc235051d7f72:/services/api/test/test_helper.rb diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb index 6d8fa9fefb..a614aa6e69 100644 --- a/services/api/test/test_helper.rb +++ b/services/api/test/test_helper.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + ENV["RAILS_ENV"] = "test" unless ENV["NO_COVERAGE_TEST"] begin @@ -66,6 +70,14 @@ class ActiveSupport::TestCase User.invalidate_permissions_cache end + def assert_equal(expect, *args) + if expect.nil? + assert_nil(*args) + else + super + end + end + def assert_not_allowed # Provide a block that calls a Rails boolean "true or false" success value, # like model.save or model.destroy. This method will test that it either