From 0315385f9817f324de1cdcb450ca996ab76ed62b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 23 Jan 2013 23:38:16 -0800 Subject: [PATCH] Fixed Nzbget tests --- .../NzbgetProviderTests/DownloadNzbFixture.cs | 4 ++-- .../DownloadClientTests/NzbgetProviderTests/QueueFixture.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/DownloadNzbFixture.cs b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/DownloadNzbFixture.cs index 1c2fd7401..7209241ba 100644 --- a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/DownloadNzbFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/DownloadNzbFixture.cs @@ -33,7 +33,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests.NzbgetProviderTes private void WithFailResponse() { Mocker.GetMock() - .Setup(s => s.PostCommand("http://192.168.5.55:6789/jsonrpc", "nzbget", "pass", It.IsAny())) + .Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny())) .Returns(File.ReadAllText(@".\Files\Nzbget\JsonError.txt")); } @@ -44,7 +44,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests.NzbgetProviderTes const string title = "30 Rock - S01E01 - Pilot [HDTV-720p]"; Mocker.GetMock() - .Setup(s => s.PostCommand("http://192.168.5.55:6789/jsonrpc", "nzbget", "pass", + .Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.Is(c => c.Equals("{\"method\":\"appendurl\",\"params\":[\"30 Rock - S01E01 - Pilot [HDTV-720p]\",\"TV\",0,false,\"http://www.nzbdrone.com\"]}")))) .Returns("{\"version\": \"1.1\",\"result\": true}"); diff --git a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/QueueFixture.cs b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/QueueFixture.cs index 20afc7cb2..a19381ebb 100644 --- a/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/QueueFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/DownloadClientTests/NzbgetProviderTests/QueueFixture.cs @@ -32,21 +32,21 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests.NzbgetProviderTes private void WithFullQueue() { Mocker.GetMock() - .Setup(s => s.PostCommand("http://192.168.5.55:6789/jsonrpc", "nzbget", "pass", It.IsAny())) + .Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny())) .Returns(File.ReadAllText(@".\Files\Nzbget\Queue.txt")); } private void WithEmptyQueue() { Mocker.GetMock() - .Setup(s => s.PostCommand("http://192.168.5.55:6789/jsonrpc", "nzbget", "pass", It.IsAny())) + .Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny())) .Returns(File.ReadAllText(@".\Files\Nzbget\Queue_empty.txt")); } private void WithFailResponse() { Mocker.GetMock() - .Setup(s => s.PostCommand("http://192.168.5.55:6789/jsonrpc", "nzbget", "pass", It.IsAny())) + .Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny())) .Returns(File.ReadAllText(@".\Files\Nzbget\JsonError.txt")); }