diff --git a/CHANGELOG.md b/CHANGELOG.md index 8228c20..c495182 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.2.1] - 2023-03-31 +- Fixed: Strip leading whitespace from failure locations + ## [0.2.1] - 2022-12-04 - Set dependency versions with >= so they do not enforce old versions diff --git a/lib/minitest_rerun_failed/failed_tests_reporter.rb b/lib/minitest_rerun_failed/failed_tests_reporter.rb index c19dfef..af52788 100644 --- a/lib/minitest_rerun_failed/failed_tests_reporter.rb +++ b/lib/minitest_rerun_failed/failed_tests_reporter.rb @@ -83,7 +83,7 @@ def find_failure_location(test, curdir) failure_file_location.gsub!(curdir, "") failure_file_location.gsub!(%r{^/}, "") - failure_file_location + failure_file_location.to_s.strip end def output_results(failure_paths, file_output) diff --git a/lib/minitest_rerun_failed/version.rb b/lib/minitest_rerun_failed/version.rb index 8e415eb..f9d410c 100644 --- a/lib/minitest_rerun_failed/version.rb +++ b/lib/minitest_rerun_failed/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module MinitestRerunFailed - VERSION = "0.2.1" + VERSION = "0.2.2" end