require 'test_helper'

class TestCaseTwosControllerTest < ActionController::TestCase
  setup do
    @test_case_two = test_case_twos(:one)
  end

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

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

  test "should create test_case_two" do
    assert_difference('TestCaseTwo.count') do
      post :create, test_case_two: { one: @test_case_two.one, three: @test_case_two.three, two: @test_case_two.two }
    end

    assert_redirected_to test_case_two_path(assigns(:test_case_two))
  end

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

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

  test "should update test_case_two" do
    patch :update, id: @test_case_two, test_case_two: { one: @test_case_two.one, three: @test_case_two.three, two: @test_case_two.two }
    assert_redirected_to test_case_two_path(assigns(:test_case_two))
  end

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

    assert_redirected_to test_case_twos_path
  end
end
