Sha256: 4005e36b35aabdb586cb5e6e3440feb52658d8e09309035cf5bdf472cffceee2
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
require 'test_helper' class PeopleIndexTest < ActionDispatch::IntegrationTest extend TestWithCassette setup do end test 'shows people', :people_index do visit(kinney.people_path) assert page.has_content?('People') assert page.has_content?('Tolson') assert page.has_content?('1963') assert page.has_content?('Atkins, III') end test 'links to show view for person with video', :people_index do visit(kinney.people_path) click_link('Edward Norris Tolson') assert current_path == kinney.person_path(kinney_people(:tolson)) end test 'links to show view for person without video', :people_index do visit(kinney.people_path) page.find('#people_no_clips').click_link('William Williams') assert current_path == kinney.person_path(kinney_people(:williams)) end test 'sort profile images', :people_index do browser_start visit(kinney.people_path) assert page.find('.thumbnails li:first').has_content?('Atkins') click_link('sort_graduating_class') assert page.find('.thumbnails li:first').has_content?('Friday') assert page.find('.thumbnails li:last').has_content?('Atkins') click_link('sort_last_name') assert page.find('.thumbnails li:first').has_content?('Atkins') browser_end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | test/integration/people_index_test.rb |
kinney-0.0.2 | test/integration/people_index_test.rb |