Skip to content

Commit

Permalink
replaced a play json usage not supported by play 2.4 (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Apr 7, 2017
1 parent a01def3 commit 2216e3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.iheart.playSwagger

import com.iheart.playSwagger.OutputTransformer.SimpleOutputTransformer
import org.specs2.mutable.Specification
import play.api.libs.json.{JsNumber, JsObject, JsString, Json}
import play.api.libs.json._

import scala.util.{Failure, Success}

Expand Down Expand Up @@ -134,7 +134,7 @@ class EnvironmentVariablesIntegrationSpec extends Specification {
val stationJson = (pathJson \ "/api/station/{sid}/playedTracks/last" \ "get").as[JsObject]
val addTrackJson = (pathJson \ "/api/station/playedTracks" \ "post").as[JsObject]

(addTrackJson \ "parameters" \ (0) \ "description").as[String] === "Add tracks"
((addTrackJson \ "parameters").as[JsArray].value.head \ "description").as[String] === "Add tracks"
(stationJson \ "responses" \ "200" \ "description").as[String] === "Last track"
}
}
Expand Down

0 comments on commit 2216e3c

Please sign in to comment.