mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
49 lines
1.5 KiB
Ruby
49 lines
1.5 KiB
Ruby
require 'test_helper'
|
|
|
|
class PageCollectionSubmissionsControllerTest < ActionDispatch::IntegrationTest
|
|
setup do
|
|
@page_collection_submission = page_collection_submissions(:one)
|
|
end
|
|
|
|
test "should get index" do
|
|
get page_collection_submissions_url
|
|
assert_response :success
|
|
end
|
|
|
|
test "should get new" do
|
|
get new_page_collection_submission_url
|
|
assert_response :success
|
|
end
|
|
|
|
test "should create page_collection_submission" do
|
|
assert_difference('PageCollectionSubmission.count') do
|
|
post page_collection_submissions_url, params: { page_collection_submission: { } }
|
|
end
|
|
|
|
assert_redirected_to page_collection_submission_url(PageCollectionSubmission.last)
|
|
end
|
|
|
|
test "should show page_collection_submission" do
|
|
get page_collection_submission_url(@page_collection_submission)
|
|
assert_response :success
|
|
end
|
|
|
|
test "should get edit" do
|
|
get edit_page_collection_submission_url(@page_collection_submission)
|
|
assert_response :success
|
|
end
|
|
|
|
test "should update page_collection_submission" do
|
|
patch page_collection_submission_url(@page_collection_submission), params: { page_collection_submission: { } }
|
|
assert_redirected_to page_collection_submission_url(@page_collection_submission)
|
|
end
|
|
|
|
test "should destroy page_collection_submission" do
|
|
assert_difference('PageCollectionSubmission.count', -1) do
|
|
delete page_collection_submission_url(@page_collection_submission)
|
|
end
|
|
|
|
assert_redirected_to page_collection_submissions_url
|
|
end
|
|
end
|