1 # frozen_string_literal: true
5 class WaysControllerTest < ActionDispatch::IntegrationTest
7 # test all routes which lead to this controller
10 { :path => "/way/1", :method => :get },
11 { :controller => "ways", :action => "show", :id => "1" }
17 sidebar_browse_check :way_path, way.id, "elements/show"
22 with_settings(:web_timeout => -1) do
25 assert_response :error
26 assert_template :layout => "map"
27 assert_dom "h2", "Timeout Error"
28 assert_dom "p", /#{Regexp.quote("the way with the id #{way.id}")}/