Sha256: 061a11bf73999b15bff19b28548ff2995e95af767bf3241418fa1a5971ac6e0a

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

require: "../lib/html"

FancySpec describe: HTML with: {
  it: "generates an empty html string when initialized" when: {
    HTML new to_s is: ""
  }

  it: "generates a simple html string" when: {
    h = HTML new
    h html: {
      h head: {
        h title: "Hello"
      }
      h body: {
        h h1: "Hello, World!"
      }
    }

    h to_s is: \
"""<html>
  <head>
    <title>
      Hello
    </title>
  </head>
  <body>
    <h1>
      Hello, World!
    </h1>
  </body>
</html>"""
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fancy-0.8.0 tests/html.fy
fancy-0.7.0 tests/html.fy
fancy-0.6.0 tests/html.fy