Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.

This commit is contained in:
Luke Melia 2008-06-18 02:57:57 -04:00 committed by Simon Rozet
parent 7b432a74ed
commit 2c09db45c5
602 changed files with 47788 additions and 29 deletions

View file

@ -0,0 +1,20 @@
# it "should default to current url" do
# # @session.current_page.stubs(:url).returns("/page")
# @session.response_body = <<-EOS
# <form method="get">
# <input type="submit" />
# </form>
# EOS
# @page.stubs(:url).returns("/current")
# @session.expects(: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
# @session.expects(:https!).with(true)
# @session.expects(:get).with("/page/sub", {})
# @session.clicks_link "Jump to sub page"
# end