Sha256: 81d543bc8b7ffca8d6dd908626cd5428f5dab288d38069a48d66210b58220bd5

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

require 'test_helper'

class AgendamentosControllerTest < ActionController::TestCase
  setup do
    @agendamento = agendamentos(:one)
  end

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

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

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

    assert_redirected_to agendamento_path(assigns(:agendamento))
  end

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

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

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

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

    assert_redirected_to agendamentos_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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