From f3d31c3ea1e8f4e0813156a2d26efe2af73f0ea2 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 18 Jun 2015 09:18:25 +0200 Subject: [PATCH] Fixed btn tests. --- .../IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs index d6c0c901e..506cd8155 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs @@ -21,7 +21,7 @@ public void Setup() Subject.Definition = new IndexerDefinition() { Name = "BroadcastheNet", - Settings = new BroadcastheNetSettings() { ApiKey = "abc" } + Settings = new BroadcastheNetSettings() { ApiKey = "abc", BaseUrl = "https://api.btnapps.net/" } }; } @@ -133,6 +133,8 @@ public void should_replace_https_http_as_needed() { var recentFeed = ReadAllText(@"Files/Indexers/BroadcastheNet/RecentFeed.json"); + (Subject.Definition.Settings as BroadcastheNetSettings).BaseUrl = "http://api.btnapps.net/"; + recentFeed = recentFeed.Replace("http:", "https:"); Mocker.GetMock()