require 'test_helper'

class TestthreesControllerTest < ActionController::TestCase
  setup do
    @testthree = testthrees(:one)
  end

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

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

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

    assert_redirected_to testthree_path(assigns(:testthree))
  end

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

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

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

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

    assert_redirected_to testthrees_path
  end
end
