webrat/spec/integration/rails_spec.rb

20 lines
676 B
Ruby
Raw Normal View History

# it "should default to current url" do
2008-07-25 23:11:56 +00:00
# # @session.current_page.stub!(:url).and_return("/page")
# @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", {})
# @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", {})
# @session.clicks_link "Jump to sub page"
# end