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

Update Renderer#text_format calls to pass symbol

Alexander Brandon Colesd19aa2d7ee79
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb
index 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 formatter
def format_revision_text(commit_message)
- format_text(commit_message, format: "plain")
+ format_text(commit_message, format: :plain)
end
def 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.rb
index 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 do
end
it "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>")
end
end
end