1
0
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:
Dan Barber 2014-03-15 18:00:41 +00:00
parent 5cb9c0075d
commit 433490af41

View File

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