]> git.openstreetmap.org Git - rails.git/blob - test/system/user_suspension_test.rb
Merge pull request #6394 from openstreetmap/dependabot/github_actions/ruby/setup...
[rails.git] / test / system / user_suspension_test.rb
1 # frozen_string_literal: true
2
3 require "application_system_test_case"
4
5 class UserSuspensionTest < ApplicationSystemTestCase
6   test "User shown a message when suspended mid-session" do
7     user = create(:user)
8     sign_in_as(user)
9     visit account_path
10     assert_content "My Account"
11
12     user.suspend!
13
14     visit account_path
15     assert_content "This decision will be reviewed by an administrator shortly"
16   end
17 end