Sha256: 72be2f73ba203b811f9bf5fa0ab5b2db44a48bf94cf08f1932ef856380de4e5d

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

require 'test_helper'

class Kinney::ClipsControllerTest < ActionController::TestCase
  extend TestWithCassette

  test "should get index" do
    get :index, :use_route => :kinney
    assert_response :success
    assert assigns(:people)
  end

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

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

  test_with_cassette 'should assign title for a show view', 'clips_controller' 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

2 entries across 2 versions & 1 rubygems

Version Path
kinney-0.0.3 test/functional/kinney/clips_controller_test.rb
kinney-0.0.2 test/functional/kinney/clips_controller_test.rb