Sha256: 3f22b48aeb4c73f3c8a62fb086ed1b622b02d04a5ec75b49d590f887f359404e
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
require 'test_helper' class ClipsIndexTest < ActionDispatch::IntegrationTest extend TestWithCassette test "clip index page should list all of the people with videos and the titles of their videos", :clips_index do visit(kinney.clips_path) assert page.has_content?('Tolson') assert page.has_content?('Growing Up in Edgecombe County') assert page.has_content?('Mentors') assert page.has_content?('Atkins') assert page.has_content?('Pullen Fire') end test "clip index page should list the name_suffix of a person", :clips_index do visit(kinney.clips_path) assert page.has_content?('John Leslie Atkins, III') end test "clip index page should list the graduating class of a person next to the name", :clips_index do visit(kinney.clips_path) assert page.has_content?('John Leslie Atkins, III (1965)') end test "clicking on a video thumbnail should go to a video clip", :clips_index do visit(kinney.clips_path) page.first('.thumbnail_video').click assert page.has_selector?('body.kinney_clips video') end test "the first text link should be the same as the video thumbnail link", :clips_index do visit(kinney.clips_path) atkins_section = page.first('#clip_profiles li') image_link = atkins_section.find('.thumbnail_video')[:href] assert_equal kinney.clip_path(kinney_clips(:atkins_fire)), image_link first_list_link = atkins_section.find('li:first a')[:href] assert_equal kinney.clip_path(kinney_clips(:atkins_fire)), first_list_link assert first_list_link != atkins_section.find('li:last a')[:href] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | test/integration/clips_index_test.rb |
kinney-0.0.2 | test/integration/clips_index_test.rb |