Skip to content

Commit f4fc48d

Browse files
committed
Hide output from CLI tests
1 parent cbeab31 commit f4fc48d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/erb/test_formatter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ def test_error_on_unformattable_file
3131
def test_fail_level_flag_check_with_changes
3232
cli = ERB::Formatter::CommandLine.new(["--fail-level", "check", "test/fixtures/attributes.html.erb"])
3333
error = assert_raises SystemExit do
34-
cli.run
34+
assert_output(/src="image.jpg"/) { cli.run }
3535
end
3636
assert_equal(1, error.status)
3737
end
3838

3939
def test_fail_level_flag_check_without_changes
4040
cli = ERB::Formatter::CommandLine.new(["--fail-level", "check", "test/fixtures/attributes.html.expected.erb"])
41-
cli.run
41+
assert_output(/src="image.jpg"/) { cli.run }
4242
end
4343

4444
def test_format_text_with_extra_long_text

0 commit comments

Comments
 (0)