require 'test_helper'

class AriaextsControllerTest < ActionController::TestCase
  setup do
    @ariaext = ariaexts(:one)
  end

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

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

  test "should create ariaext" do
    assert_difference('Ariaext.count') do
      post :create, ariaext: {  }
    end

    assert_redirected_to ariaext_path(assigns(:ariaext))
  end

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

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

  test "should update ariaext" do
    patch :update, id: @ariaext, ariaext: {  }
    assert_redirected_to ariaext_path(assigns(:ariaext))
  end

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

    assert_redirected_to ariaexts_path
  end
end
