summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-24 22:08:05 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-24 22:08:05 +0200
commit90207029de7474082310d0725801d60f7145fa98 (patch)
tree97b0c54fcd004ff221265e479f2602f8e3a5b093 /test/controllers
parent215279dfb003163a7938ba948082363c105e888f (diff)
Extract admin strings to i18n: sessions, otp, users/edit
Diffstat (limited to 'test/controllers')
-rw-r--r--test/controllers/users_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
index 946b5414..14f12b52 100644
--- a/test/controllers/users_controller_test.rb
+++ b/test/controllers/users_controller_test.rb
@@ -163,6 +163,13 @@ class UsersControllerTest < ActionController::TestCase
163 end 163 end
164 assert_redirected_to users_path 164 assert_redirected_to users_path
165 end 165 end
166
167 test "enrolled user gets a working my account" do
168 users(:quentin).update!(:otp_secret => ROTP::Base32.random)
169 login_as :quentin
170 get :edit, params: { :id => users(:quentin).id }
171 assert_response :success
172 end
166 173
167 test "admin user can promote regular users to admins" do 174 test "admin user can promote regular users to admins" do
168 login_as :aaron 175 login_as :aaron