- 'Move',
- 'Remove',
- 'Copy',
- ].each do |action|
- test "selection #{action} for project" do
- src = api_fixture('groups')['aproject']
- dest = api_fixture('groups')['asubproject']
- my_collection = api_fixture('collections')['collection_to_move_around_in_aproject']
-
+ ['Move',api_fixture('collections')['collection_to_move_around_in_aproject'],
+ api_fixture('groups')['aproject'],api_fixture('groups')['asubproject']],
+ ['Remove',api_fixture('collections')['collection_to_move_around_in_aproject'],
+ api_fixture('groups')['aproject']],
+ ['Copy',api_fixture('collections')['collection_to_move_around_in_aproject'],
+ api_fixture('groups')['aproject'],api_fixture('groups')['asubproject']],
+ ['Remove',api_fixture('collections')['collection_in_aproject_with_same_name_as_in_home_project'],
+ api_fixture('groups')['aproject'],nil,true],
+ ].each do |action, my_collection, src, dest=nil, expect_name_change=nil|
+ test "selection #{action} #{expect_name_change} for project" do