Froegin keys

This commit is contained in:
2021-10-26 12:44:05 +02:00
parent f76b125f84
commit beec4a00de
8 changed files with 37 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ class JobsControllerTest < ActionDispatch::IntegrationTest
test "should create job" do
assert_difference('Job.count') do
post jobs_url, params: { job: { job_id: @job.job_id, params: @job.params, type: @job.type } }, as: :json
post jobs_url, params: { job: { job_id: @job.job_id, params: @job.params, job_type: @job.job_type } }, as: :json
end
assert_response 201
@@ -24,7 +24,7 @@ class JobsControllerTest < ActionDispatch::IntegrationTest
end
test "should update job" do
patch job_url(@job), params: { job: { job_id: @job.job_id, params: @job.params, type: @job.type } }, as: :json
patch job_url(@job), params: { job: { job_id: @job.job_id, params: @job.params, job_type: @job.job_type } }, as: :json
assert_response 200
end