Specs are only pending on MRI. They pass on JRuby
This commit is contained in:
parent
5015122fa9
commit
bd6f4986fb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue