require File.dirname(__FILE__) + '/../test_helper' class Test1sControllerTest < ActionController::TestCase def test_should_get_index get :index assert_response :success assert_not_nil assigns(:test1s) end def test_should_get_new get :new assert_response :success end def test_should_create_test1 assert_difference('Test1.count') do post :create, :test1 => { } end assert_redirected_to test1_path(assigns(:test1)) end def test_should_show_test1 get :show, :id => test1s(:one).id assert_response :success end def test_should_get_edit get :edit, :id => test1s(:one).id assert_response :success end def test_should_update_test1 put :update, :id => test1s(:one).id, :test1 => { } assert_redirected_to test1_path(assigns(:test1)) end def test_should_destroy_test1 assert_difference('Test1.count', -1) do delete :destroy, :id => test1s(:one).id end assert_redirected_to test1s_path end end