aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
index acfa9d4..4f0c66f 100644
--- a/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
+++ b/core/src/test/scala/com/softwaremill/sttp/UriInterpolatorTests.scala
@@ -59,7 +59,9 @@ class UriInterpolatorTests extends FunSuite with Matchers {
"ports" -> List(
(uri"http://example.com:8080", s"http://example.com:8080"),
(uri"http://example.com:${8080}", s"http://example.com:8080"),
- (uri"http://example.com:${8080}/x", s"http://example.com:8080/x")
+ (uri"http://example.com:${8080}/x", s"http://example.com:8080/x"),
+ (uri"http://example.com:${Some(8080)}/x", s"http://example.com:8080/x"),
+ (uri"http://example.com:$None/x", s"http://example.com/x")
),
"path" -> List(
(uri"http://example.com/$v1", s"http://example.com/$v1"),