X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d281577e42c6f8411cc3ee9954134b771499624..1d36bef0f6e0a64d4d7660f5db8e9625d99302c6:/services/api/test/functional/database_controller_test.rb diff --git a/services/api/test/functional/database_controller_test.rb b/services/api/test/functional/database_controller_test.rb index 56662ee437..ef1d0c6d05 100644 --- a/services/api/test/functional/database_controller_test.rb +++ b/services/api/test/functional/database_controller_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class DatabaseControllerTest < ActionController::TestCase @@ -12,11 +16,10 @@ class DatabaseControllerTest < ActionController::TestCase test "route not found when not in test mode" do authorize_with :admin env_was = Rails.env - Rails.application.reload_routes! begin - assert_raises ActionController::RoutingError do - Rails.env = 'production' - Rails.application.reload_routes! + Rails.env = 'production' + Rails.application.reload_routes! + assert_raises ActionController::UrlGenerationError do post :reset end ensure