Sha256: 946a42c681ca226e5bf1c463faf789b2d7869263e4fb8056d3fce1037688c728
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
describe "Joosy.Helpers.View", -> # Shortcut h = Joosy.Helpers.Application it "renders tag with string content", -> tag = h.contentTag 'div', 'content', {id: 'id'} expect(tag).toBeTag 'div', 'content', id: 'id' it "renders tag with lambda content", -> tag = h.contentTag 'div', {id: 'id'}, -> h.contentTag 'div', 'content', {id: 'id2'} expect(tag.toLowerCase()).toEqualHTML '<div id="id"><div id="id2">content</div></div>'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joosy-1.2.0.beta.4 | spec/joosy/core/helpers/view_spec.coffee |
joosy-1.2.0.beta.3 | spec/joosy/core/helpers/view_spec.coffee |
joosy-1.2.0.beta.2 | spec/joosy/core/helpers/view_spec.coffee |