mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 19:10:16 +01:00
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:
parent
7b432a74ed
commit
2c09db45c5
602 changed files with 47788 additions and 29 deletions
20
vendor/plugins/webrat/spec/integration/rails_spec.rb
vendored
Normal file
20
vendor/plugins/webrat/spec/integration/rails_spec.rb
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue