From da5b59f4cc8e95add1c363d501bbf99740421181 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 7 Jul 2025 06:37:46 +0300 Subject: [PATCH] Remove unnecessary with_controller around check_ordering --- .../controllers/api/relations_controller_test.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/test/controllers/api/relations_controller_test.rb b/test/controllers/api/relations_controller_test.rb index 7e3884954..42570a975 100644 --- a/test/controllers/api/relations_controller_test.rb +++ b/test/controllers/api/relations_controller_test.rb @@ -807,11 +807,9 @@ module Api check_ordering(doc, @response.body) # check the ordering in the history tables: - with_controller(OldRelationsController.new) do - get api_relation_version_path(relation_id, 2) - assert_response :success, "can't read back version 2 of the relation #{relation_id}" - check_ordering(doc, @response.body) - end + get api_relation_version_path(relation_id, 2) + assert_response :success, "can't read back version 2 of the relation #{relation_id}" + check_ordering(doc, @response.body) end ## @@ -887,11 +885,9 @@ module Api check_ordering(doc, @response.body) # check the ordering in the history tables: - with_controller(OldRelationsController.new) do - get api_relation_version_path(relation_id, 1) - assert_response :success, "can't read back version 1 of the relation: #{@response.body}" - check_ordering(doc, @response.body) - end + get api_relation_version_path(relation_id, 1) + assert_response :success, "can't read back version 1 of the relation: #{@response.body}" + check_ordering(doc, @response.body) end ## -- 2.39.5