0
0
Fork 0

Add RSpec GitHub annotations gem (#24040)

This commit is contained in:
Nick Schonning 2023-10-17 12:28:09 -04:00 committed by GitHub
parent 71447ab19f
commit 5ef26d8fd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -36,6 +36,12 @@ RSpec.configure do |config|
config.after :suite do
FileUtils.rm_rf(Dir[Rails.root.join('spec', 'test_files')])
end
# Use the GitHub Annotations formatter for CI
if ENV['GITHUB_ACTIONS'] == 'true'
require 'rspec/github'
config.add_formatter RSpec::Github::Formatter
end
end
def body_as_json