Skip to content

Commit

Permalink
Added an ignored failed test that will pass when this bug has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdirect committed Mar 24, 2015
1 parent bd8447a commit b64afb3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Abot.Tests.Unit/Core/RobotsDotTextTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,17 @@ public void IsUrlAllowed_QuerystringOnRoot_ReturnsTrue()
Assert.IsTrue(_unitUnderTest.IsUrlAllowed(_rootUri.AbsoluteUri, userAgentString));
}

[Test, Ignore]//This is a bug and needs to be fixed
public void IsUrlAllowed_QuerystringOnRoot2_ReturnsTrue()
{
string userAgentString = _userAgentString;
_unitUnderTest = new RobotsDotText(_rootUri, @"User-Agent: *
Disallow: /?/
Disallow: /category/");

Assert.IsTrue(_unitUnderTest.IsUrlAllowed(_rootUri.AbsoluteUri, userAgentString));
}

[Test]
public void IsUrlAllowed_QuerystringMatch_NotSupported_ReturnsTrue()
{
Expand Down

0 comments on commit b64afb3

Please sign in to comment.