X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fc90b7358124ce9017a94b3f6e4a779fbc28c71c..7dbf8d83369cb73929080c4ba23fdd7dcd0184df:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 385a2f682..7198519a7 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