@@ -182,6 +182,26 @@ spec = do
182 lookup "Authorization" (L.requestHeaders requestHttps)
182 lookup "Authorization" (L.requestHeaders requestHttps)
183 `shouldBe` uriBasicAuth uriHttps
183 `shouldBe` uriBasicAuth uriHttps
185+ describe "renderUrl" $ 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"
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"
185 describe "bodies" $ do
205 describe "bodies" $ do
186 describe "NoReqBody" $
206 describe "NoReqBody" $
187 it "sets body to empty byte string" $ do
207 it "sets body to empty byte string" $ do