Sha256: 1f32897cd41340d80c31cb299a70690dd8e98136f22867c8f2230a1aa550a9df
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
require 'test_helper' class ClipsIndexTest < ActionDispatch::IntegrationTest test "clip index page should list all of the people with videos and the titles of their videos" 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" 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" 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" 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" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.1 | test/integration/clips_index_test.rb |