Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / test / controllers / trash_items_controller_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class TrashItemsControllerTest < ActionController::TestCase
8   test "untrash collection with same name as another collection" do
9     collection = api_fixture('collections')['trashed_collection_to_test_name_conflict_on_untrash']
10     items = [collection['uuid']]
11     post :untrash_items, {
12       selection: items,
13       format: :js
14     }, session_for(:active)
15
16     assert_response :success
17   end
18 end