Sha256: 4f7bc41ba5d056b50a4bf3b3cbfca176308cfd60245203852dad5839592ee502

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

require 'test_helper'

class Lentil::ImagesControllerTest < ActionController::TestCase
  test "should get index" do
    get :index, :use_route => :lentil
    assert_response :success
    assert assigns(:images)
  end

  test "should get show" do
    get :show, :id => lentil_images(:one).id, :use_route => :lentil
    assert_response :success
  end

  test "should get recent" do
    get :recent, :use_route => :lentil
    assert_response :success
  end

  test "should get popular" do
    get :popular, :use_route => :lentil
    assert_response :success
  end

  test "should get staff picks" do
    get :staff_picks, :use_route => :lentil
    assert_response :success
    assert_equal(lentil_images(:one), assigns(:images).first)
  end

  test "should get rss feed for index" do
    get :index, :use_route => :lentil, :format => :rss
    assert_response :success
  end

  test "should get atom feed for index" do
    get :index, :use_route => :lentil, :format => :atom
    assert_response :success
  end

  test "should get an animated view of all images" do
    get :animate, :use_route => :lentil
    assert_response :success
  end

  test "should get an animated view of staff pick images" do
    get :staff_picks_animate, :use_route => :lentil
    assert_response :success
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lentil-0.1.7 test/functional/lentil/images_controller_test.rb
lentil-0.1.6 test/functional/lentil/images_controller_test.rb
lentil-0.1.3 test/functional/lentil/images_controller_test.rb
lentil-0.1.2 test/functional/lentil/images_controller_test.rb
lentil-0.1.1 test/functional/lentil/images_controller_test.rb
lentil-0.1.0 test/functional/lentil/images_controller_test.rb
lentil-0.0.3.pre test/functional/lentil/images_controller_test.rb
lentil-0.0.2.pre test/functional/lentil/images_controller_test.rb
lentil-0.0.1.pre test/functional/lentil/images_controller_test.rb