Sha256: aac769b3d30b3391e0727b445903ca0010401e7176fb1ef2fe707b50647f334a

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'test_helper'

class FormacoesControllerTest < ActionController::TestCase
  setup do
    @formacao = formacoes(:one)
  end

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

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

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

    assert_redirected_to formacao_path(assigns(:formacao))
  end

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

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

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

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

    assert_redirected_to formacoes_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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