1 # frozen_string_literal: true
 
   5 class RelationMembersControllerTest < ActionDispatch::IntegrationTest
 
   7   # test all routes which lead to this controller
 
  10       { :path => "/relation/1/members", :method => :get },
 
  11       { :controller => "relation_members", :action => "show", :id => "1" }
 
  15   def test_show_with_members
 
  16     relation = create(:relation)
 
  17     get relation_members_path(relation)
 
  18     assert_response :success
 
  21   def test_show_not_found
 
  22     get relation_members_path(0)
 
  24     assert_response :not_found
 
  28     relation = create(:relation)
 
  30     with_settings(:web_timeout => -1) do
 
  31       get relation_members_path(relation, 1)
 
  34     assert_response :error