2008-05-12 03:58:20 +00:00
|
|
|
# it "should default to current url" do
|
2008-07-25 23:11:56 +00:00
|
|
|
# # @session.current_page.stub!(:url).and_return("/page")
|
2008-05-12 03:58:20 +00:00
|
|
|
# @session.response_body = <<-EOS
|
|
|
|
# <form method="get">
|
|
|
|
# <input type="submit" />
|
|
|
|
# </form>
|
|
|
|
# EOS
|
2008-07-25 23:11:56 +00:00
|
|
|
# @page.stub!(:url).and_return("/current")
|
|
|
|
# @session.should_receive(:get).with("/current", {})
|
2008-05-12 03:58:20 +00:00
|
|
|
# @session.clicks_button
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
# it "should follow fully qualified secure local links" do
|
|
|
|
# @session.response_body = <<-EOS
|
|
|
|
# <a href="https://www.example.com/page/sub">Jump to sub page</a>
|
|
|
|
# EOS
|
2008-07-25 23:11:56 +00:00
|
|
|
# @session.should_receive(:https!).with(true)
|
|
|
|
# @session.should_receive(:get).with("/page/sub", {})
|
2008-05-12 03:58:20 +00:00
|
|
|
# @session.clicks_link "Jump to sub page"
|
|
|
|
# end
|