Tags can take textual content.

This commit is contained in:
Nathan Sobo
2011-12-27 16:05:01 -06:00
parent e570c5d454
commit b5a06c288e
3 changed files with 22 additions and 0 deletions

View File

@@ -20,3 +20,12 @@ fdescribe "Builder", ->
builder.tag 'li'
expect(builder.toHtml()).toBe("<ol><li></li><li></li></ol>")
it "can generate tags with text", ->
builder.tag 'div', "hello"
expect(builder.toHtml()).toBe("<div>hello</div>")
builder.reset()
builder.tag 'div', 22
expect(builder.toHtml()).toBe("<div>22</div>")