Correct some specs that need full URLs
This commit is contained in:
parent
35cbfd9643
commit
3e71ae3733
|
@ -11,4 +11,5 @@ log
|
||||||
*.swp
|
*.swp
|
||||||
results
|
results
|
||||||
test_apps
|
test_apps
|
||||||
*.tmproj
|
*.tmproj
|
||||||
|
webrat.log
|
||||||
|
|
|
@ -108,7 +108,7 @@ describe "click_link" do
|
||||||
<a title="piddle" href="/page">Link text</a>
|
<a title="piddle" href="/page">Link text</a>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
webrat_session.should_receive(:get).with("/page", {})
|
webrat_session.should_receive(:get).with("http://www.example.com/page", {})
|
||||||
click_link 'piddle'
|
click_link 'piddle'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ describe "click_link" do
|
||||||
<a title="piddlediddle" href="/page">Link text</a>
|
<a title="piddlediddle" href="/page">Link text</a>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
webrat_session.should_receive(:get).with("/page", {})
|
webrat_session.should_receive(:get).with("http://www.example.com/page", {})
|
||||||
click_link /iddle/
|
click_link /iddle/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ describe "select_date" do
|
||||||
</form>
|
</form>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
webrat_session.should_receive(:post).with("/appointments",
|
webrat_session.should_receive(:post).with("http://www.example.com/appointments",
|
||||||
"appointment" => {"date(1i)" => '2003', "date(2i)" => "12", "date(3i)" => "25"})
|
"appointment" => {"date(1i)" => '2003', "date(2i)" => "12", "date(3i)" => "25"})
|
||||||
select_date Date.parse("December 25, 2003"), :from => "date ?"
|
select_date Date.parse("December 25, 2003"), :from => "date ?"
|
||||||
click_button
|
click_button
|
||||||
|
|
|
@ -85,7 +85,7 @@ describe "select_datetime" do
|
||||||
</form>
|
</form>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
webrat_session.should_receive(:post).with("/appointments",
|
webrat_session.should_receive(:post).with("http://www.example.com/appointments",
|
||||||
"appointment" => {"time(1i)" => '2003', "time(2i)" => "12", "time(3i)" => "25", "time(4i)" => "09", "time(5i)" => "30"})
|
"appointment" => {"time(1i)" => '2003', "time(2i)" => "12", "time(3i)" => "25", "time(4i)" => "09", "time(5i)" => "30"})
|
||||||
select_datetime "December 25, 2003 9:30", :from => "Time ?"
|
select_datetime "December 25, 2003 9:30", :from => "Time ?"
|
||||||
click_button
|
click_button
|
||||||
|
|
|
@ -242,7 +242,7 @@ describe "select" do
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
webrat_session.should_receive(:post).with("/login", "clothes" => "pants")
|
webrat_session.should_receive(:post).with("http://www.example.com/login", "clothes" => "pants")
|
||||||
click_button
|
click_button
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ describe "select_time" do
|
||||||
</form>
|
</form>
|
||||||
</html>
|
</html>
|
||||||
HTML
|
HTML
|
||||||
webrat_session.should_receive(:post).with("/appointments",
|
webrat_session.should_receive(:post).with("http://www.example.com/appointments",
|
||||||
"appointment" => {"time(4i)" => "09", "time(5i)" => "30"})
|
"appointment" => {"time(4i)" => "09", "time(5i)" => "30"})
|
||||||
select_time "9:30AM", :from => "Time #"
|
select_time "9:30AM", :from => "Time #"
|
||||||
click_button
|
click_button
|
||||||
|
|
Loading…
Reference in New Issue