20846: More kwargs / Ruby 3 compatibility fixes.
[arvados.git] / services / api / test / integration / cross_origin_test.rb
index e3099f15735dec3d9ebf688b251553aad3964463..6a3db89fc43a43ca1eaa49c5ae1164422ca33c48 100644 (file)
@@ -5,10 +5,10 @@
 require 'test_helper'
 
 class CrossOriginTest < ActionDispatch::IntegrationTest
-  def options *args
+  def options path, **kwargs
     # Rails doesn't support OPTIONS the same way as GET, POST, etc.
     reset! unless integration_session
-    integration_session.__send__(:process, :options, *args).tap do
+    integration_session.__send__(:process, :options, path, **kwargs).tap do
       copy_session_variables!
     end
   end