1 require "application_system_test_case"
3 class UserStatusChangeTest < ApplicationSystemTestCase
5 admin = create(:administrator_user)
9 test "Admin can unsuspend a user" do
10 user = create(:user, :suspended)
13 click_link "Unsuspend"
16 assert_no_content "Unsuspend"
18 assert_equal "active", user.status
21 test "Admin can confirm a user" do
22 user = create(:user, :suspended)
28 assert_no_content "Unsuspend"
30 assert_equal "confirmed", user.status