Commit Graph

28 Commits

Author SHA1 Message Date
Jo Liss d1ff724e78 Merge pull request #603 from robvandijk/master
Referer should point to original referer after a redirect
2012-01-10 08:39:59 -08:00
Rob van Dijk 757c135b8e Moved test to shared_example_for in driver, included test both for rack_test and selenium 2012-01-10 17:08:22 +01:00
Jo Liss 6d7894b416 Do not hard-code port 80 or things will break for https
This was introduced in 8c6ff168.
2012-01-10 16:02:32 +01:00
Rob van Dijk bf1637eb6d Use the referer of the last request when redirecting 2012-01-08 22:45:47 +01:00
Kouhei Sutou 2735b26317 suppress a warning:
lib/capybara/rack_test/browser.rb:46: warning: assigned but unused variable - current_uri
2012-01-08 22:52:59 +09:00
Jo Liss 8c6ff16861 Rack::Test now respects ports when changing hosts 2012-01-04 19:04:14 +01:00
Jonas Nicklas dff278db53 #source returns an empty string instead of nil if no pages have been visited
This is more consistent with the behaviour of other methods, such as #current_url
2011-11-15 16:57:18 +01:00
Marco Antonio d56188ec35 Fixing issue with capitalized data-method in ruby 1.8.7. 2011-11-02 14:24:54 -02:00
Marco Antonio 810f3c26df Fixing issue with data-method 2011-10-18 10:45:56 -02:00
Jonas Nicklas and Kim Burgestrand 0188693ced Added option for rack-test driver to disable data method hack closes #184 2011-08-30 11:20:29 +02:00
Jonas Nicklas and Nicklas Ramhöj 39eac9af37 Fix paths relative to root path in rack-test, closes #454 2011-08-30 10:54:20 +02:00
Jonas Nicklas and Nicklas Ramhöj 33b1a27c32 Preserve headers on redirects, closes #464 2011-08-30 10:19:52 +02:00
Matt Colyer 9cf2fc4414 Reverted Browser#current_url 2011-07-29 16:14:31 -07:00
Matt Colyer 3f3382ac72 Browser#current_url should include query parameters. 2011-07-29 14:07:00 -07:00
Matt Colyer ad61682a8e Make sure that the redirect is absolute. 2011-07-19 17:33:12 -07:00
Matt Colyer bbcd48f27c Add support for changing the current_host in rack-test due to redirects. 2011-07-19 17:08:32 -07:00
Matt Colyer ed51b1000d Make Session.current_host reflect the current_host inside the rack-test driver.
Previously the last_request.url was used for the current_url, however this
made it difficult to determine if current_host was being set correctly from
the test suite.
2011-07-19 16:55:47 -07:00
Matt Colyer 691d44286a Remove extra whitespace. 2011-07-18 12:09:44 -07:00
Jonas Nicklas c3f2c44eee Merge pull request #364 from jonleighton/fix_build_rack_mock_session
Fix Capybara::RackTest::Browser#build_rack_mock_session
2011-06-01 13:36:33 -07:00
Jon Leighton 5acba501b3 Fix Capybara::RackTest::Browser#build_rack_mock_session 2011-05-26 20:46:01 +01:00
John Barton (joho) 8834050049 Actually properly handling relative URLs for forms
(Where I subtly misunderstood how URIs work)
2011-05-22 18:37:02 +10:00
John Barton (joho) 4d4eebe573 Fix problem where capybara can't post to relative urls in form actions. 2011-05-22 18:13:40 +10:00
Jonas Nicklas aeb62d6063 Remove to_binary, closes #243 and #340
After investigating this thoroughly, I have come
to the conclusion that the need for to_binary
came from a bug in rack, which has subsequently
been fixed. If warnings show up after this change
they should disappear with the release of rack 1.3
2011-05-19 12:16:41 -04:00
Jonas Nicklas 5450b0a17e Added build_rack_mock_session, closes #344 2011-05-19 11:50:06 -04:00
Jonas Nicklas a00435d630 Added :headers option to rack_test driver, closes #328 2011-04-25 11:35:57 +02:00
Jonas Nicklas 91b8740781 Don't rescue so aggressively 2011-04-07 16:17:51 +02:00
Jonas Nicklas df34d2ef7d Don't rescue so agressively 2011-04-06 09:36:05 +02:00
Jonas Nicklas 8ce6d4eb9d Split up rack-test driver into multiple classes 2011-04-05 17:42:12 +02:00