test/integration/people_index_test.rb in kinney-0.0.3 vs test/integration/people_index_test.rb in kinney-0.1.0

- old
+ new

@@ -1,43 +1,30 @@ require 'test_helper' class PeopleIndexTest < ActionDispatch::IntegrationTest - extend TestWithCassette + setup do - + end - test 'shows people', :people_index do + test 'shows people' 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 + + test 'links to show view for person with video' 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 + + test 'links to show view for person without video' do visit(kinney.people_path) - page.find('#people_no_clips').click_link('William Williams') + page.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 \ No newline at end of file