1 | cc = require '../lib/coffeecup'
|
2 |
|
3 | describe 'Common tag', ->
|
4 | describe "p 'foo'", ->
|
5 | it 'should render foo in <p> tag', ->
|
6 | p = -> p 'foo'
|
7 | cc.render(p).should.equal '<p>foo</p>'
|
8 |
|
9 | describe 'Common tag optimized', ->
|
10 | describe "p 'foo'", ->
|
11 | it 'should render foo in <p> tag', ->
|
12 | p = -> p 'foo'
|
13 | cc.render(p, optimized: true, cache: on).should.equal '<p>foo</p>'
|