From bcec14fc9bc0d47e76b3e0455d749267339f99ff Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 14 Sep 2013 12:55:18 -0700 Subject: [PATCH] added test for InheritFolderPermissions --- .../DiskProviderTests/DiskProviderFixture.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs b/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs index 69f433dfa..4de222365 100644 --- a/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs +++ b/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs @@ -198,6 +198,17 @@ namespace NzbDrone.Common.Test.DiskProviderTests } } + + [Test] + public void should_be_able_to_set_permission_from_parrent() + { + var testFile = GetTestFilePath(); + Subject.WriteAllText(testFile, new Guid().ToString()); + + Subject.InheritFolderPermissions(testFile); + } + + [Test] [Explicit] public void check_last_write()