12032: Update structure.sql
[arvados.git] / services / api / test / functional / arvados / v1 / groups_controller_test.rb
index 368781997e49babaabe85b3f2296d77b6a2a7f48..ddc40a48448f9ab135d54f0f936e133751d4e391 100644 (file)
@@ -692,17 +692,17 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
 
     test "move trashed subproject to new owner #{auth}" do
       authorize_with auth
+      assert_nil Group.readable_by(users(auth)).where(uuid: groups(:trashed_subproject).uuid).first
       put :update, {
             id: groups(:trashed_subproject).uuid,
             group: {
               owner_uuid: users(:active).uuid
             },
-            include_trashed: true,
+            include_trash: true,
             format: :json,
           }
-      # Currently fails but might want to change it in the future
-      # so leave the test here.
-      assert_response 404
+      assert_response :success
+      assert_not_nil Group.readable_by(users(auth)).where(uuid: groups(:trashed_subproject).uuid).first
     end
 
   end