adapt tests to the modified HasLink instance for QueryParam

This commit is contained in:
Alp Mestanogullari 2015-06-19 10:03:24 +02:00
parent e8bae7d035
commit 9fbd312b4c

View File

@ -61,7 +61,7 @@ spec = describe "Servant.Utils.Links" $ do
let l2 = Proxy :: Proxy ("hello" :> Capture "name" String
:> QueryParam "capital" Bool
:> Delete '[JSON] ())
apiLink l2 "bye" True `shouldBeURI` "hello/bye?capital=true"
apiLink l2 "bye" (Just True) `shouldBeURI` "hello/bye?capital=true"
let l3 = Proxy :: Proxy ("parent" :> MatrixParams "name" String
:> "child"