Sha256: 62162dcd5dc0a8809fdd0853d693ea1a4346226e3e284612c4547229bf730392

Contents?: true

Size: 1.38 KB

Versions: 17

Compression:

Stored size: 1.38 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

  test "should get a tiled view for iframe" do
    get :iframe, :use_route => :lentil
    assert_response :success
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
lentil-0.9.1 test/functional/lentil/images_controller_test.rb
lentil-0.9.0 test/functional/lentil/images_controller_test.rb
lentil-0.8.0 test/functional/lentil/images_controller_test.rb
lentil-0.7.1 test/functional/lentil/images_controller_test.rb
lentil-0.6.0 test/functional/lentil/images_controller_test.rb
lentil-0.5.2 test/functional/lentil/images_controller_test.rb
lentil-0.5.1 test/functional/lentil/images_controller_test.rb
lentil-0.5.0 test/functional/lentil/images_controller_test.rb
lentil-0.4.2 test/functional/lentil/images_controller_test.rb
lentil-0.4.0 test/functional/lentil/images_controller_test.rb
lentil-0.3.1 test/functional/lentil/images_controller_test.rb
lentil-0.3.0 test/functional/lentil/images_controller_test.rb
lentil-0.2.3 test/functional/lentil/images_controller_test.rb
lentil-0.2.2 test/functional/lentil/images_controller_test.rb
lentil-0.2.1 test/functional/lentil/images_controller_test.rb
lentil-0.2.0 test/functional/lentil/images_controller_test.rb
lentil-0.1.8 test/functional/lentil/images_controller_test.rb