X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ff962a1e1b168dc52278a1a7fe9eb21aad3f727e..424b6ef1cf760c4a3e27ac1e6f612ae42a9cd493:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index c9ec46dcf..95d48bd5c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -150,5 +150,13 @@ module ActiveSupport end end end + + def sign_in_as(user) + stub_hostip_requests + visit login_path + fill_in "username", :with => user.email + fill_in "password", :with => "test" + click_on "Login", :match => :first + end end end