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
fde436d6eb
commit
f5b4a63b3f
@ -31,6 +31,15 @@ describe 'visitor navigates site' do
|
|||||||
|
|
||||||
click_link 'portfolio'
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user