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