projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '18803-empty-identity-url'
[arvados.git]
/
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 56662ee4373988f13a2d81c3806a5e6ea7bf40f2..ef1d0c6d05e6486e40a3e6456eac99f074d7a24f 100644
(file)
--- 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
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
test "route not found when not in test mode" do
authorize_with :admin
env_was = Rails.env
- Rails.application.reload_routes!
begin
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
post :reset
end
ensure