From c8d43accfb8ec3d6cc102f4835baf8b3bc5c5214 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 8 Aug 2013 11:44:10 -0700 Subject: [PATCH] FreeSpaceSpec is blowing everything up... undoing for now. --- .../EpisodeImportTests/FreeSpaceSpecificationFixture.cs | 3 +++ .../EpisodeImport/Specifications/FreeSpaceSpecification.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NzbDrone.Core.Test/MediaFileTests/EpisodeImportTests/FreeSpaceSpecificationFixture.cs b/NzbDrone.Core.Test/MediaFileTests/EpisodeImportTests/FreeSpaceSpecificationFixture.cs index bda744ca5..1f033a769 100644 --- a/NzbDrone.Core.Test/MediaFileTests/EpisodeImportTests/FreeSpaceSpecificationFixture.cs +++ b/NzbDrone.Core.Test/MediaFileTests/EpisodeImportTests/FreeSpaceSpecificationFixture.cs @@ -54,6 +54,7 @@ private void GivenFreeSpace(long size) } [Test] + [Ignore] public void should_reject_when_there_isnt_enough_disk_space() { GivenFileSize(100.Megabytes()); @@ -64,6 +65,7 @@ public void should_reject_when_there_isnt_enough_disk_space() } [Test] + [Ignore] public void should_reject_when_there_isnt_enough_space_for_file_plus_100mb_padding() { GivenFileSize(100.Megabytes()); @@ -74,6 +76,7 @@ public void should_reject_when_there_isnt_enough_space_for_file_plus_100mb_paddi } [Test] + [Ignore] public void should_accept_when_there_is_enough_disk_space() { GivenFileSize(100.Megabytes()); diff --git a/NzbDrone.Core/MediaFiles/EpisodeImport/Specifications/FreeSpaceSpecification.cs b/NzbDrone.Core/MediaFiles/EpisodeImport/Specifications/FreeSpaceSpecification.cs index 9a1a361a7..a25413d6e 100644 --- a/NzbDrone.Core/MediaFiles/EpisodeImport/Specifications/FreeSpaceSpecification.cs +++ b/NzbDrone.Core/MediaFiles/EpisodeImport/Specifications/FreeSpaceSpecification.cs @@ -24,6 +24,9 @@ public FreeSpaceSpecification(IBuildFileNames buildFileNames, IDiskProvider disk public bool IsSatisfiedBy(LocalEpisode localEpisode) { + //TODO: fix issues with this, seems to be completely broken... + return true; + var newFileName = Path.GetFileNameWithoutExtension(localEpisode.Path); var destinationFilename = _buildFileNames.BuildFilePath(localEpisode.Series, localEpisode.SeasonNumber, newFileName, Path.GetExtension(localEpisode.Path));