From 052ddc11b7cb65539251bdbbf512c745024eb5f9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 28 Apr 2019 19:27:34 -0700 Subject: [PATCH] Added a unit test for the NZBGet Final dir fix --- .../DownloadClientTests/NzbgetTests/NzbgetFixture.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs index 525dc68f4..62ac89fcf 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs @@ -406,9 +406,20 @@ public void should_remap_storage_if_mounted() result.OutputPath.Should().Be(@"O:\mymount\Droned.S01E01.Pilot.1080p.WEB-DL-DRONE".AsOsAgnostic()); } + [Test] + public void should_use_dest_dir_if_final_dir_is_null() + { + GivenQueue(null); + GivenHistory(_completed); + + Subject.GetItems().First().OutputPath.Should().Be(_completed.DestDir); + } + [Test] public void should_use_dest_dir_if_final_dir_is_not_set() { + _completed.FinalDir = string.Empty; + GivenQueue(null); GivenHistory(_completed);