From 461be2b38881bccb2a821234e262fbab016ea1a4 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 28 Jun 2015 20:15:17 +0200 Subject: [PATCH] Removed eztv migration tests. --- .../Migration/074_disable_eztvFixture.cs | 66 ------------------- .../NzbDrone.Core.Test.csproj | 1 - 2 files changed, 67 deletions(-) delete mode 100644 src/NzbDrone.Core.Test/Datastore/Migration/074_disable_eztvFixture.cs 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 @@ -