From 4ad7ce83630912c593e1229b9d57862a41350e95 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 21 May 2013 22:32:25 -0700 Subject: [PATCH] added categories to integration tests --- NzbDrone.Integration.Test/Client/ClientBase.cs | 4 ++-- NzbDrone.Integration.Test/IntegrationTest.cs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Integration.Test/Client/ClientBase.cs b/NzbDrone.Integration.Test/Client/ClientBase.cs index 9f3613b80..f99b5d5a9 100644 --- a/NzbDrone.Integration.Test/Client/ClientBase.cs +++ b/NzbDrone.Integration.Test/Client/ClientBase.cs @@ -95,8 +95,6 @@ namespace NzbDrone.Integration.Test.Client var response = _restClient.Execute(request); _logger.Info("Response: {0}", response.Content); - response.StatusCode.Should().Be(statusCode); - if (response.ErrorException != null) { throw response.ErrorException; @@ -104,6 +102,8 @@ namespace NzbDrone.Integration.Test.Client response.ErrorMessage.Should().BeBlank(); + response.StatusCode.Should().Be(statusCode); + return Json.Deserialize(response.Content); } diff --git a/NzbDrone.Integration.Test/IntegrationTest.cs b/NzbDrone.Integration.Test/IntegrationTest.cs index 02cc50418..da30ff7a2 100644 --- a/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/NzbDrone.Integration.Test/IntegrationTest.cs @@ -15,11 +15,13 @@ using NzbDrone.Core.Datastore; using NzbDrone.Integration.Test.Client; using NzbDrone.Owin; using NzbDrone.Owin.MiddleWare; +using NzbDrone.Test.Common.Categories; using RestSharp; namespace NzbDrone.Integration.Test { [TestFixture] + [IntegrationTest] public abstract class IntegrationTest { private NancyBootstrapper _bootstrapper;