Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/ruby/library/cgi/unescapeHTML_spec.rb
Original file line number Diff line number Diff line change
@@ -31,4 +31,9 @@
expected = '&<&amp>&quot&abcdefghijklmn'
CGI.unescapeHTML(input).should == expected
end

it "leaves partial invalid &# at end of string" do
input = "fooooooo&#"
CGI.unescapeHTML(input).should == input
end
end

0 comments on commit 1ad761b

Please sign in to comment.