Skip to content

Commit

Permalink
fixup! fixup! Use only one runner
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Nov 24, 2024
1 parent 62fe0e5 commit 1861eba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/retest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def run(changed_files: [], test_files: [])
log("Test file: #{cached_test_file}")
end

log("\n")
system_run command.to_s
.gsub('<test>', cached_test_file.to_s)
.gsub('<changed>', changed_file.to_s)
Expand Down
2 changes: 1 addition & 1 deletion test/retest/program_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_run_not_trigger_repository_find_test_when_hardcoded
@repository = RaisingRepository.new
@subject = Program.new(runner: @runner, repository: @repository)

out, _ = capture_subprocess_io { @subject.run('path.rb') }
capture_subprocess_io { @subject.run('path.rb') }
end
end
end
Expand Down
1 change: 1 addition & 0 deletions test/retest/runner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_files_selected_ouptut
assert_equal(<<~EXPECTED, output)
Changed file: file_path.rb
Test file: file_path_test.rb
EXPECTED
end

Expand Down

0 comments on commit 1861eba

Please sign in to comment.