@@ -182,6 +182,26 @@ spec = do
182182 lookup "Authorization" (L.requestHeaders requestHttps)
183183 `shouldBe` uriBasicAuth uriHttps
184184
185+ describe "renderUrl" $ do
186+ context "http" $ do
187+ context "empty path" $
188+ it "renders correctly" $ do
189+ let (uriHttp, _) = [urlQ|http://httpbin.org|]
190+ renderUrl uriHttp `shouldBe` "http://httpbin.org"
191+ context "non-empty path" $
192+ it "renders correctly" $ do
193+ let (uriHttp, _) = [urlQ|http://httpbin.org/here/we/go|]
194+ renderUrl uriHttp `shouldBe` "http://httpbin.org/here/we/go"
195+ context "http" $ do
196+ context "empty path" $
197+ it "renders correctly" $ do
198+ let (uriHttp, _) = [urlQ|https://httpbin.org|]
199+ renderUrl uriHttp `shouldBe` "https://httpbin.org"
200+ context "non-empty path" $
201+ it "renders correctly" $ do
202+ let (uriHttp, _) = [urlQ|https://httpbin.org/here/we/go|]
203+ renderUrl uriHttp `shouldBe` "https://httpbin.org/here/we/go"
204+
185205 describe "bodies" $ do
186206 describe "NoReqBody" $
187207 it "sets body to empty byte string" $ do