diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-01-16 13:58:09 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-01-16 13:58:09 +0000 |
commit | aee32d5f42560ad0ff5d47034da699b3e608d2b4 (patch) | |
tree | c6f53976dfcb03cabf474a9c8528db44da762c2e /server | |
parent | 66deff10063ff49bcf0443ca3cc2b7f4639857cc (diff) | |
download | spacebeans-aee32d5f42560ad0ff5d47034da699b3e608d2b4.tar.gz spacebeans-aee32d5f42560ad0ff5d47034da699b3e608d2b4.zip |
Tidying
Diffstat (limited to 'server')
-rw-r--r-- | server/test/src/handlers/GeminiHandlerSpec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/src/handlers/GeminiHandlerSpec.scala b/server/test/src/handlers/GeminiHandlerSpec.scala index 6b177f8..f3545a0 100644 --- a/server/test/src/handlers/GeminiHandlerSpec.scala +++ b/server/test/src/handlers/GeminiHandlerSpec.scala @@ -9,8 +9,6 @@ import net.usebox.gemini.server._ class GeminiHandlerSpec extends AnyFlatSpec with Matchers { - behavior of "handle" - val handler = new GeminiHandler(TestData.conf) val handlerUserDir = new GeminiHandler(TestData.confUserDir) val handlerCgi = new GeminiHandler(TestData.cgiConf) @@ -22,6 +20,8 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers { ): Response = geminiHandler.handle(req, URI.create(req), remoteAddr) + behavior of "handle" + it should "handle host case insensitive" in { handleWith(handler, "gemini://LOCALHOST/") should be(a[Success]) } |