X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1f2ac59d1d24d75c510412e63070d83af13c6757..40cab845fbabb3f0aa8131c16e48cd3d58b6dcb3:/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