Merge branch '12084-dispatch-stuck'
[arvados.git] / services / api / test / test_helper.rb
index 6d8fa9fefb9ced87302eb61d15ef7f5888c29e4f..a614aa6e69fcae8db84745734d99e7e5d99823ad 100644 (file)
@@ -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