13973: Tweak test for inheriting CR priority
[arvados.git] / services / api / test / functional / database_controller_test.rb
index 56662ee4373988f13a2d81c3806a5e6ea7bf40f2..ef1d0c6d05e6486e40a3e6456eac99f074d7a24f 100644 (file)
@@ -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