Skip to content

Commit

Permalink
Add pending spec for not unencoding entities in textarea default values
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 29, 2008
1 parent f032a8d commit 3134d1c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/api/click_button_spec.rb
Expand Up @@ -329,6 +329,21 @@
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>
Expand Down

0 comments on commit 3134d1c

Please sign in to comment.