add test to ensure allowed clause with value also works

This commit is contained in:
Dan Milne
2024-12-24 10:44:06 +11:00
parent 88c7dc67f2
commit a7291bdfc3

View File

@@ -144,6 +144,7 @@ class TestProbot < Minitest::Test
def test_empty_allow_disallow
assert Probot.new(%(User-agent: *\nAllow:)).rules.dig("*", "allow").empty?
assert Probot.new(%(User-agent: *\nAllow:\n\n)).rules.dig("*", "allow").empty?
assert Probot.new(%(User-agent: *\nDisallow:)).rules.dig("*", "disallow").empty?
assert Probot.new(%(User-agent: *\nDisallow:\n\n)).rules.dig("*", "disallow").empty?
end