spec/bbcoder_spec.rb in bbcoder-0.1.2 vs spec/bbcoder_spec.rb in bbcoder-0.1.3

- old
+ new

@@ -26,9 +26,13 @@ </blockquote> </fieldset> EOS string.bbcode_to_html.should == result end + + it "should return tags as text on blank content" do + '[img][/img]'.bbcode_to_html.should == '[img][/img]' + end end context "with properly formatted input" do it "should parse paragraph statements" do "[p]Text and now [p]nested.[/p][/p]".bbcode_to_html.should == "<p>Text and now <p>nested.</p></p>"