Fixed: Use runtime of series for sample checks instead of constant

This commit is contained in:
Mark McDowall
2014-11-17 17:07:27 -08:00
parent 16156611db
commit f8c002db9f
3 changed files with 24 additions and 10 deletions
@@ -24,6 +24,7 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
{
_series = Builder<Series>.CreateNew()
.With(s => s.SeriesType = SeriesTypes.Standard)
.With(s => s.Runtime = 30)
.Build();
var episodes = Builder<Episode>.CreateListOfSize(1)
@@ -106,7 +107,7 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
[Test]
public void should_return_false_if_runtime_greater_than_than_minimum()
{
GivenRuntime(120);
GivenRuntime(600);
ShouldBeFalse();
}