Sha256: 6d70263c4e5f82275fa60f7a7873fc0457469331bd81e8fca385a6549135123f
Contents?: true
Size: 869 Bytes
Versions: 13
Compression:
Stored size: 869 Bytes
Contents
describe :^ do it "raises Invalid if class has invalid chars" do should.raise(Escape_Escape_Escape::Invalid) { actual { div.^('hi)o') { 'hello' } } }.message.should.match /hi\)o/ end # ========================================================================== # =========== end sanitization specs ===================================== # ========================================================================== it "adds 'class' attribute: a.^(:warning, :red) { }" do target '<a class="warning red" href="/here">Here</a>' actual do a.^(:warning, :red).href('/here') { "Here" } end end it "merges classes: a.^(:super).^(:low)" do target '<a class="super low" href="/now">Now</a>' actual do a.^(:super).^(:low).href("/now") { "Now" } end end end # === describe :^
Version data entries
13 entries across 13 versions & 1 rubygems