summaryrefslogtreecommitdiff
path: root/test/controllers/admin_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/admin_controller_test.rb')
-rw-r--r--test/controllers/admin_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/controllers/admin_controller_test.rb b/test/controllers/admin_controller_test.rb
index cba4a59b..a177851f 100644
--- a/test/controllers/admin_controller_test.rb
+++ b/test/controllers/admin_controller_test.rb
@@ -38,4 +38,11 @@ class AdminControllerTest < ActionController::TestCase
38 assert_equal [], json["tags"] 38 assert_equal [], json["tags"]
39 assert_equal [], json["nodes"] 39 assert_equal [], json["nodes"]
40 end 40 end
41
42 test "otp_required users without enrollment are funneled to setup" do
43 users(:quentin).update!(:otp_required => true)
44 login_as :quentin
45 get :index
46 assert_redirected_to edit_user_path(users(:quentin))
47 end
41end 48end