Specs are only pending on MRI. They pass on JRuby

This commit is contained in:
Bryan Helmkamp 2008-12-25 12:23:06 -05:00
parent 5015122fa9
commit bd6f4986fb
2 changed files with 21 additions and 3 deletions

View File

@ -330,7 +330,7 @@ describe "click_button" do
end
it "should properly handle HTML entities in textarea default values" do
pending "needs bug fix" do
spec = lambda do
with_html <<-HTML
<html>
<form method="post" action="/posts">
@ -342,6 +342,12 @@ describe "click_button" do
webrat_session.should_receive(:post).with("/posts", "post" => {"body" => "Peanut butter & jelly"})
click_button
end
if Webrat.on_java?
spec.call
else
pending("needs bug fix", &spec)
end
end
it "should send default selected option value from select" do

View File

@ -201,7 +201,7 @@ describe "select" do
end
it "should properly handle submitting HTML entities in select values" do
pending "needs bug fix" do
spec = lambda do
with_html <<-HTML
<html>
<form method="post" action="/login">
@ -213,10 +213,16 @@ describe "select" do
webrat_session.should_receive(:post).with("/login", "month" => "Peanut butter & jelly")
click_button
end
if Webrat.on_java?
spec.call
else
pending("needs bug fix", &spec)
end
end
it "should properly handle locating with HTML entities in select values" do
pending "needs bug fix" do
spec = lambda do
with_html <<-HTML
<html>
<form method="post" action="/login">
@ -230,5 +236,11 @@ describe "select" do
select "Peanut butter & jelly"
}.should_not raise_error(Webrat::NotFoundError)
end
if Webrat.on_java?
spec.call
else
pending("needs bug fix", &spec)
end
end
end