X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fc90b7358124ce9017a94b3f6e4a779fbc28c71c..0a86a1ea8db0867c34f7d9dff602ee3da6036bcd:/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