From a1a5e29c3ec22a42819397163f5a0634b459d9d0 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 19 Mar 2017 19:00:05 +0100 Subject: [PATCH] fixed sab tests. --- .../DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs index 58fda96ac..51b0161a8 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs @@ -115,6 +115,13 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests .Returns(_fullStatus); } + protected void GivenVersion(string version) + { + Mocker.GetMock() + .Setup(s => s.GetVersion(It.IsAny())) + .Returns(version); + } + protected void GivenFailedDownload() { Mocker.GetMock() @@ -407,6 +414,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests _config.Misc.complete_dir = completeDir; _config.Categories.First().Dir = categoryDir; + GivenVersion("1.2.1"); GivenQueue(null); var result = Subject.GetStatus(); @@ -427,6 +435,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests _config.Misc.complete_dir = completeDir; _config.Categories.First().Dir = categoryDir; + GivenVersion("2.0.0beta1"); GivenQueue(null); var result = Subject.GetStatus();