Adds link to username on admin users index view

This commit is contained in:
decabeza
2018-03-08 18:21:20 +01:00
parent bc03aee84d
commit f05fdb88ea
2 changed files with 8 additions and 2 deletions

View File

@@ -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'