It's hard to make a distinction between 'Preferences' and 'Settings' in some languages, and many other sites use the term 'Account' for things like changing email.
15 lines
397 B
Ruby
15 lines
397 B
Ruby
require "application_system_test_case"
|
|
|
|
class UserSuspensionTest < ApplicationSystemTestCase
|
|
test "User shown a message when suspended mid-session" do
|
|
user = create(:user)
|
|
sign_in_as(user)
|
|
visit edit_account_path
|
|
assert_content "My Account"
|
|
|
|
user.suspend!
|
|
|
|
visit edit_account_path
|
|
assert_content "This decision will be reviewed by an administrator shortly"
|
|
end
|
|
end
|