Skip to content

Commit

Permalink
Hide output from CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jun 24, 2024
1 parent cbeab31 commit f4fc48d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/erb/test_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def test_error_on_unformattable_file
def test_fail_level_flag_check_with_changes
cli = ERB::Formatter::CommandLine.new(["--fail-level", "check", "test/fixtures/attributes.html.erb"])
error = assert_raises SystemExit do
cli.run
assert_output(/src="image.jpg"/) { cli.run }
end
assert_equal(1, error.status)
end

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

def test_format_text_with_extra_long_text
Expand Down

0 comments on commit f4fc48d

Please sign in to comment.