Specdoc tweaks
This commit is contained in:
parent
0b280c2f9f
commit
284b3202c4
@ -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" />
|
||||||
|
@ -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" />
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user