Add pending spec for not unencoding entities in textarea default values

This commit is contained in:
Bryan Helmkamp 2008-11-29 00:21:49 -05:00
parent f032a8de73
commit 3134d1ce73
1 changed files with 15 additions and 0 deletions

View File

@ -329,6 +329,21 @@ describe "click_button" do
click_button
end
it "should properly handle HTML entities in textarea default values" do
pending "needs bug fix" do
with_html <<-HTML
<html>
<form method="post" action="/posts">
<textarea name="post[body]">Peanut butter &amp; jelly</textarea>
<input type="submit" />
</form>
</html>
HTML
webrat_session.should_receive(:post).with("/posts", "post" => {"body" => "Peanut butter & jelly"})
click_button
end
end
it "should send default selected option value from select" do
with_html <<-HTML
<html>