]> git.openstreetmap.org Git - rails.git/blob - test/system/user_suspension_test.rb
Removed unused translations from Traces namespace
[rails.git] / test / system / user_suspension_test.rb
1 require "application_system_test_case"
2
3 class UserSuspensionTest < ApplicationSystemTestCase
4   test "User shown a message when suspended mid-session" do
5     user = create(:user)
6     sign_in_as(user)
7     visit edit_account_path
8     assert_content "My Settings"
9
10     user.suspend!
11
12     visit edit_account_path
13     assert_content "This decision will be reviewed by an administrator shortly"
14   end
15 end