|
|
|
@ -31,7 +31,7 @@ namespace NzbDrone.Core.Test.Configuration
|
|
|
|
|
[Test]
|
|
|
|
|
public void Get_value_should_return_default_when_no_value()
|
|
|
|
|
{
|
|
|
|
|
Subject.HistoryCleanupDays.Should().Be(365);
|
|
|
|
|
Subject.HistoryCleanupDays.Should().Be(30);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -46,7 +46,7 @@ namespace NzbDrone.Core.Test.Configuration
|
|
|
|
|
public void get_value_with_out_persist_should_not_store_default_value()
|
|
|
|
|
{
|
|
|
|
|
var interval = Subject.HistoryCleanupDays;
|
|
|
|
|
interval.Should().Be(365);
|
|
|
|
|
interval.Should().Be(30);
|
|
|
|
|
Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|