3 class RelationsControllerTest < ActionDispatch::IntegrationTest
 
   5   # test all routes which lead to this controller
 
   8       { :path => "/relation/1", :method => :get },
 
   9       { :controller => "relations", :action => "show", :id => "1" }
 
  14     relation = create(:relation)
 
  15     sidebar_browse_check :relation_path, relation.id, "elements/show"
 
  19     relation = create(:relation)
 
  20     with_settings(:web_timeout => -1) do
 
  21       get relation_path(relation)
 
  23     assert_response :error
 
  24     assert_template :layout => "map"
 
  25     assert_dom "h2", "Timeout Error"
 
  26     assert_dom "p", /#{Regexp.quote("the relation with the id #{relation.id}")}/