refs #11906
[arvados.git] / services / api / test / integration / cross_origin_test.rb
index ebe7ce7a6705b0d99d2e4b439b9339c7061a6531..0dd8146bddbbd14b7d55583dec44e340557c8a23 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class CrossOriginTest < ActionDispatch::IntegrationTest
@@ -70,7 +74,7 @@ class CrossOriginTest < ActionDispatch::IntegrationTest
 
   def assert_no_cors_headers
     response.headers.keys.each do |h|
-      assert_no_match /^Access-Control-/i, h
+      assert_no_match(/^Access-Control-/i, h)
     end
   end
 end