Fixed bug in history check.

This commit is contained in:
kay.one 2011-06-05 12:15:46 -07:00
commit 4c8b1d9604
2 changed files with 5 additions and 3 deletions

View file

@ -79,7 +79,8 @@ namespace NzbDrone.Core.Test
var repo = MockLib.GetEmptyRepository();
var history = Builder<History>.CreateNew().Build();
var history = Builder<History>.CreateNew()
.With(h => h.Quality = QualityTypes.Bluray720p).Build();
repo.Add(history);
mocker.SetConstant(repo);
@ -88,6 +89,7 @@ namespace NzbDrone.Core.Test
//Assert
Assert.IsNotNull(result);
result.QualityType.Should().Be(QualityTypes.Bluray720p);
}
[Test]