16159: Merge branch 'master' into 16159-token-expiration-on-logout
[arvados.git] / apps / workbench / test / controllers / trash_items_controller_test.rb
index c530ba9f6d6cd907e6956cd9dd89b81453b5d275..c4090f0cef7dde572f3faec563b006c2bf3883fe 100644 (file)
@@ -1,13 +1,17 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class TrashItemsControllerTest < ActionController::TestCase
   test "untrash collection with same name as another collection" do
     collection = api_fixture('collections')['trashed_collection_to_test_name_conflict_on_untrash']
     items = [collection['uuid']]
-    post :untrash_items, {
+    post :untrash_items, params: {
       selection: items,
       format: :js
-    }, session_for(:active)
+    }, session: session_for(:active)
 
     assert_response :success
   end