Whitespace
This commit is contained in:
parent
45c5a6a34d
commit
9be3f772bf
|
@ -59,23 +59,23 @@ describe "within" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should work when the scope is inside the form" do
|
it "should work when the scope is inside the form" do
|
||||||
with_html <<-HTML
|
with_html <<-HTML
|
||||||
<html>
|
<html>
|
||||||
<form id="form2" action="/form2">
|
<form id="form2" action="/form2">
|
||||||
<div class="important">
|
<div class="important">
|
||||||
<label>Email: <input type="text" class="email2" name="email" /></label>
|
<label>Email: <input type="text" class="email2" name="email" /></label>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Add" />
|
<input type="submit" value="Add" />
|
||||||
</form>
|
</form>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
webrat_session.should_receive(:get).with("/form2", "email" => "test@example.com")
|
webrat_session.should_receive(:get).with("/form2", "email" => "test@example.com")
|
||||||
within ".important" do
|
within ".important" do
|
||||||
fill_in "Email", :with => "test@example.com"
|
fill_in "Email", :with => "test@example.com"
|
||||||
end
|
end
|
||||||
|
|
||||||
submit_form "form2"
|
submit_form "form2"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should work when the form submission occurs inside a scope" do
|
it "should work when the form submission occurs inside a scope" do
|
||||||
|
|
Loading…
Reference in New Issue