diff --git a/src/NzbDrone.Core.Test/MediaFiles/ImportApprovedTracksFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/ImportApprovedTracksFixture.cs index 8437e1d76..913e2b5ad 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/ImportApprovedTracksFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/ImportApprovedTracksFixture.cs @@ -218,5 +218,18 @@ public void should_delete_existing_trackfiles_with_the_same_path() Mocker.GetMock() .Verify(v => v.Delete(It.IsAny(), DeleteMediaFileReason.ManualOverride), Times.Once()); } + + [Test] + public void should_include_scene_name_with_new_downloads() + { + var firstDecision = _approvedDecisions.First(); + firstDecision.Item.SceneName = "Artist.Name.Album.Name.TrackNum.Track.Title.MP3256"; + + Subject.Import(new List> { _approvedDecisions.First() }, true); + + Mocker.GetMock() + .Verify(v => v.UpgradeTrackFile(It.Is(e => e.SceneName == firstDecision.Item.SceneName), _approvedDecisions.First().Item, false), + Times.Once()); + } } }