mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed tests for EpisodeFileMovingService
This commit is contained in:
parent
6ac9e5ec18
commit
aa37b65842
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeFileMovingServiceTests
|
|||
.Setup(s => s.BuildSeasonPath(It.IsAny<Series>(), It.IsAny<int>()))
|
||||
.Returns(@"C:\Test\TV\Series\Season 01".AsOsAgnostic());
|
||||
|
||||
var rootFolder = @"C:\Test\TV".AsOsAgnostic();
|
||||
var rootFolder = @"C:\Test\TV\".AsOsAgnostic();
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Setup(s => s.FolderExists(rootFolder))
|
||||
.Returns(true);
|
||||
|
|
|
@ -194,7 +194,7 @@ namespace NzbDrone.Core.MediaFiles
|
|||
{
|
||||
Ensure.That(directoryName, () => directoryName).IsNotNullOrWhiteSpace();
|
||||
|
||||
var parentFolder = Path.GetDirectoryName(directoryName);
|
||||
var parentFolder = new OsPath(directoryName).Directory.FullPath;
|
||||
if (!_diskProvider.FolderExists(parentFolder))
|
||||
{
|
||||
CreateFolder(parentFolder);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue