From c576edecd414b53fedc42a1d255b62cc5aa9002d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 5 May 2020 19:36:38 +0100 Subject: [PATCH] Refactor versions_controller_test --- test/controllers/api/versions_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/api/versions_controller_test.rb b/test/controllers/api/versions_controller_test.rb index f7f514035..a1a616ad1 100644 --- a/test/controllers/api/versions_controller_test.rb +++ b/test/controllers/api/versions_controller_test.rb @@ -1,7 +1,7 @@ require "test_helper" module Api - class VersionsControllerTest < ActionController::TestCase + class VersionsControllerTest < ActionDispatch::IntegrationTest ## # test all routes which lead to this controller def test_routes @@ -16,7 +16,7 @@ module Api end def test_versions - get :show + get api_versions_path assert_response :success assert_select "osm[generator='#{Settings.generator}']", :count => 1 do assert_select "api", :count => 1 do @@ -26,7 +26,7 @@ module Api end def test_no_version_in_root_element - get :show + get api_versions_path assert_response :success assert_select "osm[version]", :count => 0 end -- 2.39.5