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

Fix File.exists? call

Oliver Günther847bb7dee81b
diff --git a/spec/models/custom_style_spec.rb b/spec/models/custom_style_spec.rb
index 0cfba8e7039..72afbd187f5 100644
--- a/spec/models/custom_style_spec.rb
+++ b/spec/models/custom_style_spec.rb
@@ -38,7 +38,7 @@ RSpec.describe CustomStyle do
end
it 'deletes the file' do
- expect(File.exists?(file_path)).to be false
+ expect(File.exist?(file_path)).to be false
end
it 'clears the file mount column' do