]> git.openstreetmap.org Git - rails.git/blob - test/system/user_suspension_test.rb
075303ff0f926ade5f20fc53b30f132d640205c6
[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.update(:status => "suspended")
11
12     visit edit_account_path
13     assert_content "This decision will be reviewed by an administrator shortly"
14   end
15 end