Sha256: 9021309a2f3e993320285f7189b8bc1a1e7404b2878d67f5e5df29d240d84575

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

require 'test_helper'

class Kinney::TopicsControllerTest < ActionController::TestCase
  test "should get show" do
    get :show, :id => kinney_topics(:roots), :use_route => :kinney
    assert_response :success
    assert assigns(:topic)
  end
  
  test "should get index" do
    get :index, :use_route => :kinney
    assert_response :success
    assert assigns(:topics)
  end

  test "show view should have title" do
    get :show, :id => kinney_topics(:roots), :use_route => :kinney
    assert_equal "Roots description", assigns(:meta_description)
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kinney-0.1.1 test/controllers/kinney/topics_controller_test.rb
kinney-0.1.0 test/controllers/kinney/topics_controller_test.rb
kinney-0.0.3 test/functional/kinney/topics_controller_test.rb
kinney-0.0.2 test/functional/kinney/topics_controller_test.rb
kinney-0.0.1 test/functional/kinney/topics_controller_test.rb