Skip to content

Commit

Permalink
Remove CrossVersion.for3Use2_13 from specs2
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Apr 11, 2023
1 parent ba1724d commit c95ff67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ class AhcWSRequestSpec extends Specification with AfterAll with DefaultBodyReada
.withQueryStringParameters("play" -> "foo1")
.addQueryStringParameters("play" -> "foo2")

newRequest.queryString.get("play") must beSome.which(_.contains("foo1"))
newRequest.queryString.get("play") must beSome.which(_.contains("foo2"))
newRequest.queryString.get("play") must beSome.which(_.size == 2)
newRequest.queryString.get("play") must beSome[Seq[String]].which(_.contains("foo1"))
newRequest.queryString.get("play") must beSome[Seq[String]].which(_.contains("foo2"))
newRequest.queryString.get("play") must beSome[Seq[String]].which(_.size == 2)
}

"support several query string values for a parameter" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AhcWSCacheSpec extends Specification {

val actual = cache.calculateFreshnessFromHeuristic(request, response)

actual must beSome.which { case value =>
actual must beSome[Seconds].which { case value =>
value must be_==(Seconds.seconds(360)) // 0.1 hours
}
}
Expand Down Expand Up @@ -72,7 +72,7 @@ class AhcWSCacheSpec extends Specification {

val actual = cache.calculateSecondaryKeys(request, response)

actual must beSome.which { d =>
actual must beSome[Map[HeaderName, Seq[String]]].which { d =>
d must haveKey(HeaderName("Accept-Encoding"))
d(HeaderName("Accept-Encoding")) must be_==(Seq("gzip"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WSConfigParserSpec extends Specification {
// default: true
actual.useProxyProperties must beFalse

actual.userAgent must beSome.which(_ must_== "FakeUserAgent")
actual.userAgent must beSome[String].which(_ must_== "FakeUserAgent")
}
}
}
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object Dependencies {
val specsVersion = "4.19.2"
val specsBuild = Seq(
"specs2-core",
).map("org.specs2" %% _ % specsVersion cross CrossVersion.for3Use2_13)
).map("org.specs2" %% _ % specsVersion)

val mockito = Seq("org.mockito" % "mockito-core" % "5.2.0")

Expand Down

0 comments on commit c95ff67

Please sign in to comment.