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
|
end
|
||||||
|
|
||||||
it "should properly handle HTML entities in textarea default values" do
|
it "should properly handle HTML entities in textarea default values" do
|
||||||
pending "needs bug fix" do
|
spec = lambda do
|
||||||
with_html <<-HTML
|
with_html <<-HTML
|
||||||
<html>
|
<html>
|
||||||
<form method="post" action="/posts">
|
<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"})
|
webrat_session.should_receive(:post).with("/posts", "post" => {"body" => "Peanut butter & jelly"})
|
||||||
click_button
|
click_button
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Webrat.on_java?
|
||||||
|
spec.call
|
||||||
|
else
|
||||||
|
pending("needs bug fix", &spec)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should send default selected option value from select" do
|
it "should send default selected option value from select" do
|
||||||
|
@ -201,7 +201,7 @@ describe "select" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "should properly handle submitting HTML entities in select values" do
|
it "should properly handle submitting HTML entities in select values" do
|
||||||
pending "needs bug fix" do
|
spec = lambda do
|
||||||
with_html <<-HTML
|
with_html <<-HTML
|
||||||
<html>
|
<html>
|
||||||
<form method="post" action="/login">
|
<form method="post" action="/login">
|
||||||
@ -213,10 +213,16 @@ describe "select" do
|
|||||||
webrat_session.should_receive(:post).with("/login", "month" => "Peanut butter & jelly")
|
webrat_session.should_receive(:post).with("/login", "month" => "Peanut butter & jelly")
|
||||||
click_button
|
click_button
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Webrat.on_java?
|
||||||
|
spec.call
|
||||||
|
else
|
||||||
|
pending("needs bug fix", &spec)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should properly handle locating with HTML entities in select values" do
|
it "should properly handle locating with HTML entities in select values" do
|
||||||
pending "needs bug fix" do
|
spec = lambda do
|
||||||
with_html <<-HTML
|
with_html <<-HTML
|
||||||
<html>
|
<html>
|
||||||
<form method="post" action="/login">
|
<form method="post" action="/login">
|
||||||
@ -230,5 +236,11 @@ describe "select" do
|
|||||||
select "Peanut butter & jelly"
|
select "Peanut butter & jelly"
|
||||||
}.should_not raise_error(Webrat::NotFoundError)
|
}.should_not raise_error(Webrat::NotFoundError)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Webrat.on_java?
|
||||||
|
spec.call
|
||||||
|
else
|
||||||
|
pending("needs bug fix", &spec)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user