Froegin keys
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user