Sha256: 2f5f32439647e0cc385a18849dec7f7f09d3833938f68c5ebebe2c87aa498a71
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
require 'test_helper' class Lentil::ImagesControllerTest < ActionController::TestCase def setup @routes = Lentil::Engine.routes end test "should get index" do get :index assert_response :success assert assigns(:images) end test "should get show" do get :show, :id => lentil_images(:one).id assert_response :success end test "should get recent" do get :recent assert_response :success end test "should get popular" do get :popular assert_response :success end test "should get staff picks" do get :staff_picks assert_response :success assert_equal(lentil_images(:one), assigns(:images).first) end test "should get rss feed for index" do get :index, :format => :rss assert_response :success end test "should get atom feed for index" do get :index, :format => :atom assert_response :success end test "should get an animated view of all images" do get :animate assert_response :success end test "should get an animated view of staff pick images" do get :staff_picks_animate assert_response :success end test "should get a tiled view for iframe" do get :iframe assert_response :success end end
Version data entries
6 entries across 6 versions & 1 rubygems