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