mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Add spec for portfolio view.
This commit is contained in:
parent
5cb9c0075d
commit
433490af41
@ -31,6 +31,15 @@ describe 'visitor navigates site' do
|
||||
|
||||
click_link 'portfolio'
|
||||
|
||||
expect(page).to have_link(category.name)
|
||||
expect(page).to have_link(category.name.downcase)
|
||||
end
|
||||
|
||||
it 'shows the photos for the category' do
|
||||
visit categories_path
|
||||
|
||||
click_link category.name.downcase
|
||||
|
||||
selector = "a[data-id='#{photo.id}']"
|
||||
expect(page).to have_selector(selector)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user