2760: Replace dashboard tables with news feed. More ability to link via names rather...
[arvados.git] / apps / workbench / test / functional / pipeline_instances_controller_test.rb
index c04b5b1f90ddd96152e997b5cc0b7b973c001bc1..b0a0da3b2d43d2df6381e44e239dc3272c25f700 100644 (file)
@@ -13,6 +13,11 @@ class PipelineInstancesControllerTest < ActionController::TestCase
     pi_uuid = assigns(:object).uuid
     assert_not_nil assigns(:object)
     yield pi_uuid, pt_fixture
+    use_token :active do
+      Link.where(head_uuid: pi_uuid).each do |link|
+        link.destroy
+      end
+    end
     post :destroy, {
       id: pi_uuid,
       format: :json