Skip to content

Commit

Permalink
try a slight change of the expectations in HtmlxSpec to work with Sca…
Browse files Browse the repository at this point in the history
…la 2.13
  • Loading branch information
etorreborre committed Mar 28, 2019
1 parent b568cad commit b3649e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/src/test/scala/org/specs2/html/HtmlxSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class HtmlxSpec extends Spec with HtmlDocuments with Grouped with TypedEqual { d
${ isHeader(<h2/>) must beTrue }
${`headersToTree builds a Tree of headers from a html document`}
${`headersToTree builds a Tree of headers - 2`}
${ (<h2 id="1"/> ++ <h3/>).updateHeadAttribute("id", 3) === (<h2 id='3'/> ++ <h3/>) }
${ (<h2 id="1"/> ++ <h3/>).updateHeadAttribute("id", 3).toList ==== List(<h2 id='3'/>, <h3/>) }
${ <h2>hello</h2>.addHeadersAnchors.toString must beMatching("<a name=\"hello\"><h2>hello</h2></a>") }

the headers methods
Expand Down Expand Up @@ -47,7 +47,7 @@ class HtmlxSpec extends Spec with HtmlDocuments with Grouped with TypedEqual { d
.`- a h2 header""".stripMargin('.').replace("\r", "")

"headers" - new g1 {
e1 := headers(<body><h1>title1</h1>Some text <h2>title2</h2>Some other text</body>) must_== (<h1>title1</h1> ++ <h2>title2</h2>)
e1 := headers(<body><h1>title1</h1>Some text <h2>title2</h2>Some other text</body>).toList must_=== List(<h1>title1</h1>, <h2>title2</h2>)
}

"anchors" - new g2 {
Expand Down

0 comments on commit b3649e9

Please sign in to comment.