mirror of
https://github.com/dkam/probot.git
synced 2025-12-28 01:04:52 +00:00
add test to ensure allowed clause with value also works
This commit is contained in:
@@ -144,6 +144,7 @@ class TestProbot < Minitest::Test
|
|||||||
|
|
||||||
def test_empty_allow_disallow
|
def test_empty_allow_disallow
|
||||||
assert Probot.new(%(User-agent: *\nAllow:)).rules.dig("*", "allow").empty?
|
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:)).rules.dig("*", "disallow").empty?
|
||||||
assert Probot.new(%(User-agent: *\nDisallow:\n\n)).rules.dig("*", "disallow").empty?
|
assert Probot.new(%(User-agent: *\nDisallow:\n\n)).rules.dig("*", "disallow").empty?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user