spec/embedded_spec.rb in nydp-0.0.10.1 vs spec/embedded_spec.rb in nydp-0.0.11

- old
+ new

@@ -100,6 +100,10 @@ expected = pair_list([x1,x2,x3,x4]) actual = parse_string "a fluffy bunny! ~(foo bar \"a rather ~(describe bunny) bunny :)\" zop) a purple cow!", '------->', :eof expect(actual).to eq expected end + it "parses a string that looks like html with little bits of embedded code in it" do + parsed = parse_string "<div id='item_~{id}'><label>~{data-label-1}</label> ~{data-content-1}</div>", '', :eof + expect(parsed.inspect).to eq '(string-pieces "<div id=\'item_" (brace-list id) "\'><label>" (brace-list data-label-1) "</label> " (brace-list data-content-1) "</div>")' + end end