We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbeab31 commit f4fc48dCopy full SHA for f4fc48d
test/erb/test_formatter.rb
@@ -31,14 +31,14 @@ def test_error_on_unformattable_file
31
def test_fail_level_flag_check_with_changes
32
cli = ERB::Formatter::CommandLine.new(["--fail-level", "check", "test/fixtures/attributes.html.erb"])
33
error = assert_raises SystemExit do
34
- cli.run
+ assert_output(/src="image.jpg"/) { cli.run }
35
end
36
assert_equal(1, error.status)
37
38
39
def test_fail_level_flag_check_without_changes
40
cli = ERB::Formatter::CommandLine.new(["--fail-level", "check", "test/fixtures/attributes.html.expected.erb"])
41
42
43
44
def test_format_text_with_extra_long_text
0 commit comments