@@ -14,7 +14,7 @@
|
||||
<tbody>
|
||||
<% @users.each do |user| %>
|
||||
<tr>
|
||||
<td><%= user.name %></td>
|
||||
<td><%= link_to user.name, user_path(user), target: "_blank" %></td>
|
||||
<td><%= user.email %></td>
|
||||
<td><%= user.document_number %></td>
|
||||
<td><%= display_user_roles(user) %></td>
|
||||
|
||||
@@ -9,12 +9,18 @@ feature 'Admin users' do
|
||||
end
|
||||
|
||||
scenario 'Index' do
|
||||
expect(page).to have_content @user.name
|
||||
expect(page).to have_link @user.name
|
||||
expect(page).to have_content @user.email
|
||||
expect(page).to have_content @admin.name
|
||||
expect(page).to have_content @admin.email
|
||||
end
|
||||
|
||||
scenario 'The username links to their public profile' do
|
||||
click_link @user.name
|
||||
|
||||
expect(current_path).to eq(user_path(@user))
|
||||
end
|
||||
|
||||
scenario 'Search' do
|
||||
fill_in :search, with: "Luis"
|
||||
click_button 'Search'
|
||||
|
||||
Reference in New Issue
Block a user