diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/074_disable_eztvFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/074_disable_eztvFixture.cs deleted file mode 100644 index 7e27249ec..000000000 --- a/src/NzbDrone.Core.Test/Datastore/Migration/074_disable_eztvFixture.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Linq; -using FluentAssertions; -using FluentMigrator; -using NUnit.Framework; -using NzbDrone.Core.Indexers; -using NzbDrone.Core.Test.Framework; - -namespace NzbDrone.Core.Test.Datastore.Migration -{ - [TestFixture] - public class disable_eztvFixture : MigrationTest - { - [Test] - public void should_disable_rss_for_eztv() - { - WithTestDb(c => - { - InsertIndexer(c, "https://www.ezrss.it/"); - }); - - var indexers = Mocker.Resolve().All().ToList(); - indexers.First().EnableRss.Should().BeFalse(); - } - - [Test] - public void should_disable_search_for_eztv() - { - WithTestDb(c => - { - InsertIndexer(c, "https://www.ezrss.it/"); - }); - - var indexers = Mocker.Resolve().All().ToList(); - indexers.First().EnableSearch.Should().BeFalse(); - } - - [Test] - public void should_not_disable_if_using_custom_url() - { - WithTestDb(c => - { - InsertIndexer(c, "https://ezrss.sonarr.tv/"); - }); - - var indexers = Mocker.Resolve().All().ToList(); - indexers.First().EnableRss.Should().BeTrue(); - indexers.First().EnableSearch.Should().BeTrue(); - } - - private void InsertIndexer(MigrationBase migrationBase, string url) - { - migrationBase.Insert.IntoTable("Indexers").Row(new - { - Name = "eztv", - Implementation = "Eztv", - Settings = String.Format(@"{{ - ""baseUrl"": ""{0}"" - }}", url), - ConfigContract = "EztvSettings", - EnableRss = 1, - EnableSearch = 1 - }); - } - } -} diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 1b560448f..fe956a2c2 100644 --- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -118,7 +118,6 @@ -