Commit Graph

32 Commits

Author SHA1 Message Date
Jo Liss 060fc3a72d RackTest::Node#text now normalizes whitespace like Selenium
Previously Rack::Test's #text method might have returned
"   some  text ", whereas now it returns "some text", just like
Selenium.
2012-01-08 23:16:57 +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
Jonas Nicklas and Kim Burgestrand bd6e0c4bb9 Merge branch 'master' of github.com:jnicklas/capybara 2011-11-15 15:50:42 +01:00
Marco Antonio d56188ec35 Fixing issue with capitalized data-method in ruby 1.8.7. 2011-11-02 14:24:54 -02:00
Mark Dodwell 79ce6f1f90 implement Element#text for RackTest to only return visible text, as with Selenium 2011-10-23 22:51:55 -07:00
Marco Antonio 810f3c26df Fixing issue with data-method 2011-10-18 10:45:56 -02:00
Jonas Nicklas 68c44fa735 Set default for respect data method to true 2011-09-04 20:26:14 +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
Jo Liss c51a232bbc Fix rack-test to ignore maxlength="", closes #396 2011-07-08 12:48:25 +02: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
Kevin Fitzpatrick & Matthew DuVall 2d2f877451 Fixed again, previous checkin was to the wrong node.rb class. chromedriver + Chrome 12 YELLS tag names in UPPERCASE 2011-05-17 12:21:51 -07:00
Carl Jackson & Davis W. Frank 5529be2a70 Fix because chromedriver + Chrome 12 YELLS tag names in UPPERCASE 2011-05-13 14:46:47 -07:00
Jonas Nicklas a00435d630 Added :headers option to rack_test driver, closes #328 2011-04-25 11:35:57 +02:00
Jonas Nicklas fd5996f5f7 Fixed some failing stuff 2011-04-08 16:14:05 +01: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