Sha256: 20a32b29398995a4c5c51f56b412b9650fd16c8c5167220a1877184c20d76a55

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

require 'test_helper'

class TiposProfissionaisControllerTest < ActionController::TestCase
  setup do
    @tipo_profissional = tipos_profissionais(:one)
  end

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

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

  test "should create tipo_profissional" do
    assert_difference('TipoProfissional.count') do
      post :create, tipo_profissional: @tipo_profissional.attributes
    end

    assert_redirected_to tipo_profissional_path(assigns(:tipo_profissional))
  end

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

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

  test "should update tipo_profissional" do
    put :update, id: @tipo_profissional, tipo_profissional: @tipo_profissional.attributes
    assert_redirected_to tipo_profissional_path(assigns(:tipo_profissional))
  end

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

    assert_redirected_to tipos_profissionais_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 test/functional/tipos_profissionais_controller_test.rb