diff --git a/test/system/users_test.rb b/test/system/users_test.rb --- a/test/system/users_test.rb +++ b/test/system/users_test.rb @@ -84,13 +84,13 @@ login 'jack','morning' visit bulk_manage_user_admin_index_path - assert_current_path root_path assert_text 'You are not authorized' + assert_current_path login_main_path login 'james','morning' visit new_list_user_admin_index_path - assert_current_path root_path assert_text 'You are not authorized' + assert_current_path login_main_path end def login(username,password)