3 class RelationMembersControllerTest < ActionDispatch::IntegrationTest
5 # test all routes which lead to this controller
8 { :path => "/relation/1/members", :method => :get },
9 { :controller => "relation_members", :action => "show", :id => "1" }
13 def test_show_with_members
14 relation = create(:relation)
15 get relation_members_path(relation)
16 assert_response :success
19 def test_show_not_found
20 get relation_members_path(0)
22 assert_response :not_found
26 relation = create(:relation)
28 with_settings(:web_timeout => -1) do
29 get relation_members_path(relation, 1)
32 assert_response :error