Fixed: Completed Download HealthCheck not working

closes #200
This commit is contained in:
Qstick
2018-01-31 21:32:10 -05:00
parent 499b222514
commit d53b983c91
2 changed files with 2 additions and 61 deletions
@@ -1,9 +1,7 @@
using NUnit.Framework;
using NzbDrone.Common.Disk;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.HealthCheck.Checks;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.HealthCheck.Checks
{
@@ -15,10 +13,6 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
{
if (enabled.HasValue)
{
Mocker.GetMock<IConfigService>()
.Setup(s => s.IsDefined("EnableCompletedDownloadHandling"))
.Returns(true);
Mocker.GetMock<IConfigService>()
.SetupGet(s => s.EnableCompletedDownloadHandling)
.Returns(enabled.Value);
@@ -26,13 +20,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
}
[Test]
public void should_return_warning_when_completed_download_handling_not_configured()
{
Subject.Check().ShouldBeWarning();
}
[Test]
public void should_return_warning_when_both_completeddownloadhandling_and_dronefactory_are_not_configured()
public void should_return_warning_when_completeddownloadhandling_false()
{
GivenCompletedDownloadHandling(false);