tests: add assertion to test_simple_valid_formula
This commit is contained in:
parent
967a7a1862
commit
91b67bd41d
@ -36,6 +36,7 @@ class FormulaTextTests < Homebrew::TestCase
|
|||||||
assert ft =~ /\burl\b/, "The formula should match 'url'"
|
assert ft =~ /\burl\b/, "The formula should match 'url'"
|
||||||
assert_nil ft.line_number(/desc/), "The formula should not match 'desc'"
|
assert_nil ft.line_number(/desc/), "The formula should not match 'desc'"
|
||||||
assert_equal 2, ft.line_number(/\burl\b/)
|
assert_equal 2, ft.line_number(/\burl\b/)
|
||||||
|
assert ft.include?("Valid"), "The formula should include \"Valid\""
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_trailing_newline
|
def test_trailing_newline
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user