Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#40228] added check for deleted file link to spec

Eric Schuberte45c06ddab29
diff --git a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb
index 99af1672f82..6e28698a0f0 100644
--- a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb
+++ b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb
@@ -171,6 +171,7 @@ describe 'API v3 file links resource', type: :request do
it 'is successful' do
expect(subject.status).to be 204
+ expect(::Storages::FileLink.exists?(id: file_link.id)).to be false
end
context 'if user has no view permissions' do