spec/base_spec.rb in bbcoder-0.1.5 vs spec/base_spec.rb in bbcoder-0.1.6

- old
+ new

@@ -30,9 +30,13 @@ context "#initialize" do it "should split tags up properly" do subject.raw.should == ["[p]", "Text and now ", "[b]", "bolded.", "[/b]", "[/p]"] end + + it "should split tags up properly without content" do + BBCoder.new("[b][/b][u][/u]").raw.should == ["[b]", "[/b]", "[u]", "[/u]"] + end end context "#parse" do it "should loop through raw elements and join the buffer" do mock(subject).raw.stub!.each {nil}