Specdoc tweaks

This commit is contained in:
Bryan Helmkamp 2008-10-25 17:17:00 -04:00
parent 0b280c2f9f
commit 284b3202c4
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ describe "clicks_area" do
end end
[200, 300, 400, 499].each do |status| [200, 300, 400, 499].each do |status|
it "should consider the status code as success" do it "should consider the #{status} status code as success" do
@session.response_body = <<-EOS @session.response_body = <<-EOS
<map name="map_de" id="map_de"> <map name="map_de" id="map_de">
<area href="/page" title="Berlin" id="berlin" shape="poly" alt="Berlin" coords="180,89,180" /> <area href="/page" title="Berlin" id="berlin" shape="poly" alt="Berlin" coords="180,89,180" />

View File

@ -55,7 +55,7 @@ describe "clicks_button" do
end end
[200, 300, 400, 499].each do |status| [200, 300, 400, 499].each do |status|
it "should consider the status code as success" do it "should consider the #{status} status code as success" do
@session.response_body = <<-EOS @session.response_body = <<-EOS
<form action="/login"> <form action="/login">
<input type="submit" /> <input type="submit" />

View File

@ -160,7 +160,7 @@ describe "clicks_link" do
end end
[200, 300, 400, 499].each do |status| [200, 300, 400, 499].each do |status|
it "should consider the status code as success" do it "should consider the #{status} status code as success" do
@session.response_body = <<-EOS @session.response_body = <<-EOS
<a href="/page">Link text</a> <a href="/page">Link text</a>
EOS EOS

View File

@ -17,7 +17,7 @@ describe "visits" do
end end
[200, 300, 400, 499].each do |status| [200, 300, 400, 499].each do |status|
it "should consider the status code as success" do it "should consider the #{status} status code as success" do
@session.response_code = status @session.response_code = status
lambda { @session.visits("/") }.should_not raise_error lambda { @session.visits("/") }.should_not raise_error
end end