Sha256: 051a67f05141c133fb2871c5413b1f5cfffc86d8d096bf860faddae9baba5609

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

require 'test_helper'

class PagesHomeTest < ActionDispatch::IntegrationTest
  
  test "topics navigation on home page should only include topics with clips" do
    visit(kinney.root_path)
    assert page.has_selector?('#topics li', :text => 'Mentors')
    assert page.has_no_selector?('#topics li', :text => 'Academics')
  end

  test "home page should have link to More Video" do
    visit(kinney.root_path)
    assert page.has_selector?('a', :text => "Video")
    assert page.has_selector?('#more_clips')
  end

  test "home page should have a featured clip" do
    visit(kinney.root_path)
    assert page.has_selector?('#featured_clip', :text => 'Applying to NC State')
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kinney-0.0.3 test/integration/pages_home_test.rb
kinney-0.0.2 test/integration/pages_home_test.rb
kinney-0.0.1 test/integration/pages_home_test.rb