yesod-routes 1.1.0.2 → 1.1.1
raw patch · 3 files changed
+5/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- test/Hierarchy.hs +2/−3
- test/main.hs +2/−3
- yesod-routes.cabal +1/−1
test/Hierarchy.hs view
@@ -14,8 +14,7 @@ , toText ) where -import Test.Hspec.Monadic-import Test.Hspec.HUnit ()+import Test.Hspec import Test.HUnit import Yesod.Routes.Parse import Yesod.Routes.TH@@ -92,7 +91,7 @@ instance RunHandler Hierarchy master where runHandler h _ _ subRoute toMaster = (h, fmap toMaster subRoute) -hierarchy :: Specs+hierarchy :: Spec hierarchy = describe "hierarchy" $ do it "renders root correctly" $ renderRoute (AdminR 5 AdminRootR) @?= (["admin", "5"], [])
test/main.hs view
@@ -8,8 +8,7 @@ {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE CPP #-}-import Test.Hspec.Monadic-import Test.Hspec.HUnit ()+import Test.Hspec import Test.HUnit ((@?=)) import Data.Text (Text, pack, unpack, singleton) import Yesod.Routes.Dispatch hiding (Static, Dynamic)@@ -195,7 +194,7 @@ -} main :: IO ()-main = hspecX $ do+main = hspec $ do describe "justRoot" $ do it "dispatches correctly" $ test justRoot [] @?= Just 1 it "fails correctly" $ test justRoot ["foo"] @?= Nothing
yesod-routes.cabal view
@@ -1,5 +1,5 @@ name: yesod-routes-version: 1.1.0.2+version: 1.1.1 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>