Fixed broken tests... wtf was I doing?

This commit is contained in:
Mark McDowall 2012-08-30 08:33:09 -07:00
parent 0b8ca7c3b0
commit d3ccd70470
2 changed files with 8 additions and 7 deletions

View File

@ -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<ConfigProvider>().SetupGet(c => c.BlackholeDirectory).Returns(pneumaticFolder);
nzbPath = pneumaticFolder + title + ".nzb";
Mocker.GetMock<ConfigProvider>().SetupGet(c => c.PneumaticDirectory).Returns(pneumaticFolder);
Mocker.GetMock<ConfigProvider>().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<PneumaticProvider>().DownloadNzb(nzbUrl, "30 Rock - Season 1").Should().BeFalse();
ExceptionVerification.ExpectedErrors(1);
}
}
}

View File

@ -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;
}