diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/controllers/users_controller_test.rb | 7 |
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 |
