Skip to content

Commit

Permalink
Rewrite assert_silent with capture_output
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 10, 2024
1 parent 2bc6561 commit 3f7b624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_rake_file_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ def test_sh_verbose_flag_nil

RakeFileUtils.verbose_flag = nil

assert_silent do
out, _ = capture_output do
sh %{shellcommand.rb}, noop: true
end
assert_empty out
end

def test_ruby_with_a_single_string_argument
Expand Down

0 comments on commit 3f7b624

Please sign in to comment.