Fixed typo
This commit is contained in:
@@ -17,7 +17,7 @@ class JobsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "should create job" do
|
||||
assert_difference("Job.count") do
|
||||
post jobs_url, params: { job: { cost_center: @job.cost_center, costum_qm_plan: @job.costum_qm_plan, costumer_firstname: @job.costumer_firstname, costumer_id_id: @job.costumer_id_id, costumer_lastname: @job.costumer_lastname, intern: @job.intern, number_of_plans_a0: @job.number_of_plans_a0, number_of_plans_a1: @job.number_of_plans_a1, number_of_plans_a2: @job.number_of_plans_a2, number_of_plans_a3: @job.number_of_plans_a3, operator_firstname: @job.operator_firstname, operator_id_id: @job.operator_id_id, operator_lastname: @job.operator_lastname, paid: @job.paid, printed_at: @job.printed_at } }
|
||||
post jobs_url, params: { job: { cost_center: @job.cost_center, costum_qm_plan: @job.costum_qm_plan, customer_firstname: @job.customer_firstname, customer_id_id: @job.customer_id_id, customer_lastname: @job.customer_lastname, intern: @job.intern, number_of_plans_a0: @job.number_of_plans_a0, number_of_plans_a1: @job.number_of_plans_a1, number_of_plans_a2: @job.number_of_plans_a2, number_of_plans_a3: @job.number_of_plans_a3, operator_firstname: @job.operator_firstname, operator_id_id: @job.operator_id_id, operator_lastname: @job.operator_lastname, paid: @job.paid, printed_at: @job.printed_at } }
|
||||
end
|
||||
|
||||
assert_redirected_to job_url(Job.last)
|
||||
@@ -34,7 +34,7 @@ class JobsControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
test "should update job" do
|
||||
patch job_url(@job), params: { job: { cost_center: @job.cost_center, costum_qm_plan: @job.costum_qm_plan, costumer_firstname: @job.costumer_firstname, costumer_id_id: @job.costumer_id_id, costumer_lastname: @job.costumer_lastname, intern: @job.intern, number_of_plans_a0: @job.number_of_plans_a0, number_of_plans_a1: @job.number_of_plans_a1, number_of_plans_a2: @job.number_of_plans_a2, number_of_plans_a3: @job.number_of_plans_a3, operator_firstname: @job.operator_firstname, operator_id_id: @job.operator_id_id, operator_lastname: @job.operator_lastname, paid: @job.paid, printed_at: @job.printed_at } }
|
||||
patch job_url(@job), params: { job: { cost_center: @job.cost_center, costum_qm_plan: @job.costum_qm_plan, customer_firstname: @job.customer_firstname, customer_id_id: @job.customer_id_id, customer_lastname: @job.customer_lastname, intern: @job.intern, number_of_plans_a0: @job.number_of_plans_a0, number_of_plans_a1: @job.number_of_plans_a1, number_of_plans_a2: @job.number_of_plans_a2, number_of_plans_a3: @job.number_of_plans_a3, operator_firstname: @job.operator_firstname, operator_id_id: @job.operator_id_id, operator_lastname: @job.operator_lastname, paid: @job.paid, printed_at: @job.printed_at } }
|
||||
assert_redirected_to job_url(@job)
|
||||
end
|
||||
|
||||
|
||||
12
test/fixtures/jobs.yml
vendored
12
test/fixtures/jobs.yml
vendored
@@ -2,11 +2,11 @@
|
||||
|
||||
one:
|
||||
operator_id: one
|
||||
costumer_id: one
|
||||
customer_id: one
|
||||
operator_firstname: MyString
|
||||
operator_lastname: MyString
|
||||
costumer_firstname: MyString
|
||||
costumer_lastname: MyString
|
||||
customer_firstname: MyString
|
||||
customer_lastname: MyString
|
||||
paid: false
|
||||
printed_at: 2024-07-27 12:13:47
|
||||
intern: false
|
||||
@@ -19,11 +19,11 @@ one:
|
||||
|
||||
two:
|
||||
operator_id: two
|
||||
costumer_id: two
|
||||
customer_id: two
|
||||
operator_firstname: MyString
|
||||
operator_lastname: MyString
|
||||
costumer_firstname: MyString
|
||||
costumer_lastname: MyString
|
||||
customer_firstname: MyString
|
||||
customer_lastname: MyString
|
||||
paid: false
|
||||
printed_at: 2024-07-27 12:13:47
|
||||
intern: false
|
||||
|
||||
@@ -16,9 +16,9 @@ class JobsTest < ApplicationSystemTestCase
|
||||
|
||||
fill_in "Cost center", with: @job.cost_center
|
||||
fill_in "Costum qm plan", with: @job.costum_qm_plan
|
||||
fill_in "Costumer firstname", with: @job.costumer_firstname
|
||||
fill_in "Costumer id", with: @job.costumer_id_id
|
||||
fill_in "Costumer lastname", with: @job.costumer_lastname
|
||||
fill_in "customer firstname", with: @job.customer_firstname
|
||||
fill_in "customer id", with: @job.customer_id_id
|
||||
fill_in "customer lastname", with: @job.customer_lastname
|
||||
check "Intern" if @job.intern
|
||||
fill_in "Number of plans a0", with: @job.number_of_plans_a0
|
||||
fill_in "Number of plans a1", with: @job.number_of_plans_a1
|
||||
@@ -41,9 +41,9 @@ class JobsTest < ApplicationSystemTestCase
|
||||
|
||||
fill_in "Cost center", with: @job.cost_center
|
||||
fill_in "Costum qm plan", with: @job.costum_qm_plan
|
||||
fill_in "Costumer firstname", with: @job.costumer_firstname
|
||||
fill_in "Costumer id", with: @job.costumer_id_id
|
||||
fill_in "Costumer lastname", with: @job.costumer_lastname
|
||||
fill_in "customer firstname", with: @job.customer_firstname
|
||||
fill_in "customer id", with: @job.customer_id_id
|
||||
fill_in "customer lastname", with: @job.customer_lastname
|
||||
check "Intern" if @job.intern
|
||||
fill_in "Number of plans a0", with: @job.number_of_plans_a0
|
||||
fill_in "Number of plans a1", with: @job.number_of_plans_a1
|
||||
|
||||
Reference in New Issue
Block a user