Sha256: 87d0bfa6d2cfcb04ffc95b5f53dac76beeb8c1d081b954fe7876b44258b12f50

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 Bytes

Contents

require 'test_helper'

class Kinney::ClipsControllerTest < ActionController::TestCase
  test "should get index" do
    get :index, :use_route => :kinney
    assert_response :success
    assert assigns(:people)
  end

  test "should get show" do
    get :show, :id => kinney_clips(:tolson_roots), :use_route => :kinney
    assert_response :success
    assert assigns(:clip)
  end

  test "should assign a webvtt variable" do
    get :show, :id => kinney_clips(:atkins_fire), :use_route => :kinney
    assert assigns(:webvtt)
    assert assigns(:webvtt).respond_to?(:cues)
  end

  test 'should assign title for a show view' do
    get :show, :id => kinney_clips(:tolson_roots), :use_route => :kinney
    assert_equal "This is a description of the Roots clip.", assigns(:meta_description)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kinney-0.0.1 test/functional/kinney/clips_controller_test.rb