Permalink
Browse files

Document gotcha about visiting absolute URLs

  • Loading branch information...
1 parent b4c228f commit 8c2a0d99f6d11cbcf85ed5f74e45a1a3b2cb5f56 @trevorturk trevorturk committed Nov 22, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
View
@@ -473,6 +473,12 @@ Gems can use this API to add their own drivers to Capybara.
use plugins which allow you to travel in time, rather than freeze time.
One such plugin is {Timecop}[http://github.com/jtrupiano/timecop].
+* When using Rack::Test, beware if attempting to visit absolute URLs. For
+ example, a session might not be shared between visits to <tt>posts_path</tt>
+ and <tt>posts_url</tt>. If testing an absolute URL in an Action Mailer email,
+ set <tt>default_url_options</tt> to match the Rails default of
+ <tt>www.example.com</tt>.
+
== License:
(The MIT License)

0 comments on commit 8c2a0d9

Please sign in to comment.