3 class DatabaseResetTest < ActionDispatch::IntegrationTest
6 # We made configuration changes here that affect routing.
7 Rails.application.reload_routes!
10 test "reset fails when not configured" do
11 Rails.configuration.enable_remote_database_reset = false
12 Rails.application.reload_routes!
13 post '/database/reset', {}, auth(:admin)
17 test "reset fails with non-admin token" do
18 post '/database/reset', {}, auth(:active)