X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d281577e42c6f8411cc3ee9954134b771499624..99c4b804af44311d95e0b0ab72521471a1166347:/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..4bda0d0f11 100644 --- a/services/api/test/functional/database_controller_test.rb +++ b/services/api/test/functional/database_controller_test.rb @@ -12,11 +12,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 + Rails.env = 'production' + Rails.application.reload_routes! assert_raises ActionController::RoutingError do - Rails.env = 'production' - Rails.application.reload_routes! post :reset end ensure