closes #11840
[arvados.git] / services / api / test / test_helper.rb
index 6d8fa9fefb9ced87302eb61d15ef7f5888c29e4f..38f44c5d9b54ed4557bdfbf9be8c8376146357b9 100644 (file)
@@ -66,6 +66,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