]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Reject referers that do not include an absolute path
[rails.git] / test / test_helper.rb
index a023dd61026ebfd671b25854d7486f645f9237ed..da36be28b7f10bff08912e68b2252e740747a82f 100644 (file)
@@ -243,6 +243,7 @@ module ActiveSupport
     end
 
     def session_for(user)
+      get login_path
       post login_path, :params => { :username => user.display_name, :password => "test" }
       follow_redirect!
     end