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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update Renderer#text_format calls to pass symbol
Alexander Brandon Colesd19aa2d7ee79
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rbindex 5a12c00c53a..7a58fe9fe44 100644--- a/app/helpers/repositories_helper.rb+++ b/app/helpers/repositories_helper.rb@@ -40,7 +40,7 @@ module RepositoriesHelper### Format revision commits with plain formatterdef format_revision_text(commit_message)- format_text(commit_message, format: "plain")+ format_text(commit_message, format: :plain)enddef truncate_at_line_break(text, length = 255)diff --git a/spec/lib/open_project/text_formatting/text_formatting_spec.rb b/spec/lib/open_project/text_formatting/text_formatting_spec.rbindex 482114a8350..9a59d2cafdc 100644--- a/spec/lib/open_project/text_formatting/text_formatting_spec.rb+++ b/spec/lib/open_project/text_formatting/text_formatting_spec.rb@@ -66,7 +66,7 @@ RSpec.describe OpenProject::TextFormatting doendit "allows plain format of options, if specified" do- expect(format_text("*Stars!*", format: "plain")).to be_html_eql("<p>*Stars!*</p>")+ expect(format_text("*Stars!*", format: :plain)).to be_html_eql("<p>*Stars!*</p>")endendend