X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5df434271e2c55b011d310db4f003a06feea5306..1aa5a54419d1112b246fa5d967f0ae3ffdcadf2b:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index c19b809ec..a5ea127f6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -185,6 +185,11 @@ module ActiveSupport click_on "Login", :match => :first end + def session_for(user) + post login_path, :params => { :username => user.display_name, :password => "test" } + follow_redirect! + end + def xml_for_node(node) doc = OSM::API.new.get_xml_doc doc.root << xml_node_for_node(node)