mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Root agnostic path
This commit is contained in:
parent
4ea35ae626
commit
5de166e3ea
@ -20,14 +20,16 @@ public class FreeSpaceSpecificationFixture : CoreTest<FreeSpaceSpecification>
|
||||
{
|
||||
private Series _series;
|
||||
private LocalEpisode _localEpisode;
|
||||
private const String ROOT_FOLDER = @"C:\Test\TV";
|
||||
private String _rootFolder;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_rootFolder = @"C:\Test\TV".AsOsAgnostic();
|
||||
|
||||
_series = Builder<Series>.CreateNew()
|
||||
.With(s => s.SeriesType = SeriesTypes.Standard)
|
||||
.With(s => s.Path = Path.Combine(ROOT_FOLDER, "30 Rock"))
|
||||
.With(s => s.Path = Path.Combine(_rootFolder, "30 Rock"))
|
||||
.Build();
|
||||
|
||||
var episodes = Builder<Episode>.CreateListOfSize(1)
|
||||
@ -94,7 +96,7 @@ public void should_use_series_paths_parent_for_free_space_check()
|
||||
Subject.IsSatisfiedBy(_localEpisode).Should().BeTrue();
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Verify(v => v.GetAvilableSpace(ROOT_FOLDER), Times.Once());
|
||||
.Verify(v => v.GetAvilableSpace(_rootFolder), Times.Once());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user