Permalink
Browse files

xml-hamlet: Adapt specs for hspec 1.0/1.1

  • Loading branch information...
1 parent 59e120f commit c4280a50b39e5d3d1e359bd00cd6dcf3f3448e02 @sol sol committed May 7, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 xml-hamlet/test/main.hs
  2. +1 −1 xml-hamlet/xml-hamlet.cabal
View
@@ -7,7 +7,7 @@ import Test.Hspec
import Test.Hspec.HUnit ()
main :: IO ()
-main = hspecX $ describe "xml-hamlet"
+main = hspecX [describe "xml-hamlet"
[ it "handles plain tags" $ [xml|
<foo>
<baz>
@@ -130,7 +130,7 @@ $else
bin=bin>content
|] @?= [xml|<foo bar=baz bin=bin>content|]
, it "short circuiting of attributes" $ [xml|<foo :False:x=#{undefined}>|] @?= [xml|<foo>|]
- ]
+ ]]
where
bin = "bin"
nodes = [X.NodeInstruction $ X.Instruction "ifoo" "ibar"]
@@ -31,7 +31,7 @@ test-suite test
hs-source-dirs: test
type: exitcode-stdio-1.0
ghc-options: -Wall
- build-depends: hspec
+ build-depends: hspec >= 1.0 && < 1.2
, HUnit
, base >= 4 && < 5
, shakespeare

0 comments on commit c4280a5

Please sign in to comment.