From a69b3865568e57efa1537cabf7dccc425657561b Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 26 Dec 2023 11:10:11 +0800 Subject: [PATCH] DEV: Fix can't modify frozen string error when reporting server errors (#25033) Follow up to https://github.com/discourse/discourse/commit/9d658591d67122286f2b4aa484bd1697f183f965 --- spec/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 5595e3cbdb9..d0f0df10ae6 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -582,7 +582,7 @@ RSpec.configure do |config| config.after :each do |example| if example.exception && RspecErrorTracker.exceptions.present? - lines = (RSpec.current_example.metadata[:extra_failure_lines] ||= "") + lines = (RSpec.current_example.metadata[:extra_failure_lines] ||= +"") lines << "~~~~~~~ SERVER EXCEPTIONS ~~~~~~~"