Merge pull request #8674 from reitermarkus/rspec-no-colon

Remove colon from RSpec annotations.
This commit is contained in:
Markus Reiter 2020-09-10 02:00:14 +02:00 committed by GitHub
commit c70d6d1f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ module RSpec
description = failure.example.full_description
message = failure.message_lines.join("\n")
annotation = "#{description}:\n\n#{message}"
annotation = "#{description}\n\n#{message}"
output.puts "\n::error file=#{file},line=#{line}::#{self.class.escape(annotation)}"
end
@ -48,7 +48,7 @@ module RSpec
else
"Pending: #{pending.example.execution_result.pending_message}"
end
annotation = "#{description}:\n\n#{message}"
annotation = "#{description}\n\n#{message}"
output.puts "\n::warning file=#{file},line=#{line}::#{self.class.escape(annotation)}"
end