Sha256: 3134e71ec59afc8273f69fd2fb6cad81972c6322ab3197c4b08691b2e47b0a94
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'test_helper' class TipoDiabetesControllerTest < ActionController::TestCase setup do @tipo_diabete = tipo_diabetes(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:tipo_diabetes) end test "should get new" do get :new assert_response :success end test "should create tipo_diabete" do assert_difference('TipoDiabete.count') do post :create, tipo_diabete: @tipo_diabete.attributes end assert_redirected_to tipo_diabete_path(assigns(:tipo_diabete)) end test "should show tipo_diabete" do get :show, id: @tipo_diabete assert_response :success end test "should get edit" do get :edit, id: @tipo_diabete assert_response :success end test "should update tipo_diabete" do put :update, id: @tipo_diabete, tipo_diabete: @tipo_diabete.attributes assert_redirected_to tipo_diabete_path(assigns(:tipo_diabete)) end test "should destroy tipo_diabete" do assert_difference('TipoDiabete.count', -1) do delete :destroy, id: @tipo_diabete end assert_redirected_to tipo_diabetes_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | test/functional/tipo_diabetes_controller_test.rb |