require 'test_helper'

class TesttwentythreesControllerTest < ActionController::TestCase
  setup do
    @testtwentythree = testtwentythrees(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:testtwentythrees)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create testtwentythree" do
    assert_difference('Testtwentythree.count') do
      post :create, testtwentythree: { account_id: @testtwentythree.account_id, one: @testtwentythree.one, status: @testtwentythree.status, three: @testtwentythree.three, two: @testtwentythree.two }
    end

    assert_redirected_to testtwentythree_path(assigns(:testtwentythree))
  end

  test "should show testtwentythree" do
    get :show, id: @testtwentythree
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @testtwentythree
    assert_response :success
  end

  test "should update testtwentythree" do
    patch :update, id: @testtwentythree, testtwentythree: { account_id: @testtwentythree.account_id, one: @testtwentythree.one, status: @testtwentythree.status, three: @testtwentythree.three, two: @testtwentythree.two }
    assert_redirected_to testtwentythree_path(assigns(:testtwentythree))
  end

  test "should destroy testtwentythree" do
    assert_difference('Testtwentythree.count', -1) do
      delete :destroy, id: @testtwentythree
    end

    assert_redirected_to testtwentythrees_path
  end
end
