Bug 17032 [QA Followup] - Update path to swagger.json file
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 13:00:09 +0000 (13:00 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 13:00:09 +0000 (13:00 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/api/v1/swagger/definitions.t

index c7977e9..c1ab1eb 100644 (file)
@@ -27,9 +27,9 @@ use Swagger2;
 
 use C4::Context;
 
-my $swaggerPath = C4::Context->config('intranetdir')."/api/v1";
-my $swagger = Swagger2->new($swaggerPath."/swagger.json")->expand;
-my $api_spec = $swagger->api_spec->data;
+my $swaggerPath = C4::Context->config('intranetdir') . "/api/v1/swagger";
+my $swagger     = Swagger2->new( $swaggerPath . "/swagger.json" )->expand;
+my $api_spec    = $swagger->api_spec->data;
 
 # The basic idea of this test:
 # 1. Find all definitions in Swagger under api/v1/definitions