jnicklas/capybara — pull request #606 by joliss (2012-01-10 17:34:07+00:00)
Title: Rack::Test now does not send a referer when calling `visit` multiple times

---------------

`instance_variable_set(:@last_request, nil)` is rather ugly, but Rack::Test does not expose a writer for `@last_request` in lib/rack/mock_session.rb.

Do you think this is too ugly? It won't fail outright if `@last_request` ever goes away in Rack::Test, but the referer behavior will break.