Sha256: 70a9c0c1828162fb404e978242d72f7594ee82fad0625cf27003c7cde779b730
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
require 'test_helper' class ExamesControllerTest < ActionController::TestCase setup do @exame = exames(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:exames) end test "should get new" do get :new assert_response :success end test "should create exame" do assert_difference('Exame.count') do post :create, exame: @exame.attributes end assert_redirected_to exame_path(assigns(:exame)) end test "should show exame" do get :show, id: @exame assert_response :success end test "should get edit" do get :edit, id: @exame assert_response :success end test "should update exame" do put :update, id: @exame, exame: @exame.attributes assert_redirected_to exame_path(assigns(:exame)) end test "should destroy exame" do assert_difference('Exame.count', -1) do delete :destroy, id: @exame end assert_redirected_to exames_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | test/functional/exames_controller_test.rb |