Sha256: 973ee8feb2104bc80a2a298ceed1d4eadbee4a9c23a1b677036a44c755bd97fd
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'test_helper' class PacientesControllerTest < ActionController::TestCase setup do @paciente = pacientes(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:pacientes) end test "should get new" do get :new assert_response :success end test "should create paciente" do assert_difference('Paciente.count') do post :create, paciente: @paciente.attributes end assert_redirected_to paciente_path(assigns(:paciente)) end test "should show paciente" do get :show, id: @paciente assert_response :success end test "should get edit" do get :edit, id: @paciente assert_response :success end test "should update paciente" do put :update, id: @paciente, paciente: @paciente.attributes assert_redirected_to paciente_path(assigns(:paciente)) end test "should destroy paciente" do assert_difference('Paciente.count', -1) do delete :destroy, id: @paciente end assert_redirected_to pacientes_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | test/functional/pacientes_controller_test.rb |