spec/bbcoder_spec.rb in bbcoder-1.0.1 vs spec/bbcoder_spec.rb in bbcoder-1.1.0

- old
+ new

@@ -173,11 +173,11 @@ "[img]image.exe[/img]".bbcode_to_html.should == "[img]image.exe[/img]" end it "should handle an img tag match for meta" do "[img=image.exe]".bbcode_to_html.should == "[img=image.exe]" - end +p end end context "with xss attacks" do it "should reject anything other than http/https for url tags" do "[url=javascript:alert('You got hacked!')]hacked[/url]".bbcode_to_html.should == "[url=javascript:alert('You got hacked!')]hacked[/url]" @@ -217,6 +217,5 @@ );jpg[/img]" attack.bbcode_to_html.should == attack end end end -