Sha256: 627f481cb3616ffe324c1d996a2daaadeb1cc24b4dcbb83363249723d5e52050

Contents?: true

Size: 1.14 KB

Versions: 26

Compression:

Stored size: 1.14 KB

Contents

require 'test_helper'

class AdminImagesControllerTest < ActionController::TestCase

  setup do
    @controller = ::Admin::LentilImagesController.new
    user = lentil_admin_users(:one)
    sign_in user
  end

  test "should get to images index" do
    get :index, :use_route => :lentil
    assert_response :success
  end

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

  test "should get to images moderate new" do
    get :moderate, :use_route => :lentil
    assert_response :success
  end

  test "should get to images moderate skipped" do
    get :moderate_skipped, :use_route => :lentil
    assert_response :success
  end

  test "should get to moderate flagged" do
    get :moderate_flagged, :use_route => :lentil
    assert_response :success
  end

  test "should get flagging history" do
    get :flagging_history, :use_route => :lentil
    assert_response :success
  end

  test "should get to manual images input" do
    get :manual_input, :use_route => :lentil
    assert_response :success
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

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