aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-11-25 10:30:08 +0100
committeradamw <adam@warski.org>2017-11-25 10:30:08 +0100
commit7611a82978da965d133d78dc8787b8edefee1661 (patch)
treea15ef7cd9ff6edc7e4d4e2c3b0051f9e74f23769 /core
parent2a6d7a13c410e07d8ce58701f0fae816df3919e0 (diff)
downloadsttp-7611a82978da965d133d78dc8787b8edefee1661.tar.gz
sttp-7611a82978da965d133d78dc8787b8edefee1661.tar.bz2
sttp-7611a82978da965d133d78dc8787b8edefee1661.zip
Adding tests for optional ports in uri interpolator
Diffstat (limited to 'core')
-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"),