|
|
|
@ -21,14 +21,14 @@ namespace NzbDrone.Common.Test
|
|
|
|
|
{
|
|
|
|
|
ReportingService.ClearCache();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void report_parse_error_should_send_report_to_server()
|
|
|
|
|
{
|
|
|
|
|
const string badTitle = "Bad Title";
|
|
|
|
|
|
|
|
|
|
ReportingService.ReportParseError(badTitle);
|
|
|
|
|
MockedRestProvider.Verify(p => p.PostData(It.IsAny<string>(), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
|
|
|
|
MockedRestProvider.Verify(p => p.PostData(It.Is<string>(c => c.ToLower().StartsWith("http://service.nzbdrone.com/")), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|