From d3ccd704702ddc955eaa126740718323a96554e8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 30 Aug 2012 08:33:09 -0700 Subject: [PATCH] Fixed broken tests... wtf was I doing? --- .../DownloadClientTests/PneumaticProviderFixture.cs | 13 +++++++------ .../Providers/DownloadClients/PneumaticProvider.cs | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/PneumaticProviderFixture.cs b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/PneumaticProviderFixture.cs index 7949c5ca5..293b7697e 100644 --- a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/PneumaticProviderFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/PneumaticProviderFixture.cs @@ -18,14 +18,18 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests public class PneumaticProviderFixture : CoreTest { private const string nzbUrl = "http://www.nzbs.com/url"; - private const string title = "some_nzb_title"; + private const string title = "30.Rock.S01E05.hdtv.xvid-LoL"; private const string pneumaticFolder = @"d:\nzb\pneumatic\"; - private const string nzbPath = @"d:\nzb\blackhole\some_nzb_title.nzb"; + private const string sabDrop = @"d:\unsorted tv\"; + private string nzbPath; [SetUp] public void Setup() { - Mocker.GetMock().SetupGet(c => c.BlackholeDirectory).Returns(pneumaticFolder); + nzbPath = pneumaticFolder + title + ".nzb"; + + Mocker.GetMock().SetupGet(c => c.PneumaticDirectory).Returns(pneumaticFolder); + Mocker.GetMock().SetupGet(c => c.SabDropDirectory).Returns(sabDrop); } private void WithExistingFile() @@ -70,9 +74,6 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests public void should_skip_if_full_season_download() { Mocker.Resolve().DownloadNzb(nzbUrl, "30 Rock - Season 1").Should().BeFalse(); - ExceptionVerification.ExpectedErrors(1); } - - } } diff --git a/NzbDrone.Core/Providers/DownloadClients/PneumaticProvider.cs b/NzbDrone.Core/Providers/DownloadClients/PneumaticProvider.cs index df0456f43..0a6e557dd 100644 --- a/NzbDrone.Core/Providers/DownloadClients/PneumaticProvider.cs +++ b/NzbDrone.Core/Providers/DownloadClients/PneumaticProvider.cs @@ -40,7 +40,7 @@ namespace NzbDrone.Core.Providers.DownloadClients //Todo: Allow full season releases if (Parser.ParseTitle(title).FullSeason) { - logger.Warn("Skipping Full Season Release: {0}", title); + logger.Info("Skipping Full Season Release: {0}", title); return false; }