Sha256: 0bdd55691d78f444e3cecbcbe4b5224f8c184d8a76e4e8a65d224dc7dac6ef28
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'test_helper' class Org::Admin::OrganHandlesControllerTest < ActionDispatch::IntegrationTest setup do @org_admin_organ_handle = create org_admin_organ_handles end test 'index ok' do get admin_organ_handles_url assert_response :success end test 'new ok' do get new_admin_organ_handle_url assert_response :success end test 'create ok' do assert_difference('OrganHandle.count') do post admin_organ_handles_url, params: { } end assert_redirected_to org_admin_organ_handle_url(OrganHandle.last) end test 'show ok' do get admin_organ_handle_url(@org_admin_organ_handle) assert_response :success end test 'edit ok' do get edit_admin_organ_handle_url(@org_admin_organ_handle) assert_response :success end test 'update ok' do patch admin_organ_handle_url(@org_admin_organ_handle), params: { } assert_response :success end test 'destroy ok' do assert_difference('OrganHandle.count', -1) do delete admin_organ_handle_url(@org_admin_organ_handle) end assert_response :success end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_org-0.0.1 | test/controllers/org/admin/organ_handles_controller_test.rb |