]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Merge remote-tracking branch 'upstream/pull/3194'
[rails.git] / test / test_helper.rb
index a023dd61026ebfd671b25854d7486f645f9237ed..a6147ef29054e817dbe27d7cd9b3c5a146dcf6a6 100644 (file)
@@ -160,7 +160,7 @@ module ActiveSupport
 
       request.sign!(oauth)
 
-      method(method).call(request.signed_uri, options)
+      method(method).call(request.signed_uri, **options)
     end
 
     ##
@@ -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