diff --git a/lib/rspec_flaky/report.rb b/lib/rspec_flaky/report.rb index 393ba3ae9f7..73f30362cfe 100644 --- a/lib/rspec_flaky/report.rb +++ b/lib/rspec_flaky/report.rb @@ -40,7 +40,7 @@ module RspecFlaky report_path_dir = File.dirname(file_path) FileUtils.mkdir_p(report_path_dir) unless Dir.exist?(report_path_dir) - File.write(file_path, Gitlab::Json.pretty_generate(flaky_examples.to_h)) + File.write(file_path, JSON.pretty_generate(flaky_examples.to_h)) end def prune_outdated(days: OUTDATED_DAYS_THRESHOLD)