Fixed typo

This commit is contained in:
2024-10-02 13:51:15 +02:00
parent 23749c80b8
commit 337ff9b9d9
24 changed files with 79 additions and 79 deletions

View File

@@ -78,7 +78,7 @@ end
job = Job.new(status:, privacy_policy: true, created_at: created_at)
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
student = students[rand(0..9)]
job.costumer = student
job.customer = student
job.creator = student
operator = operators[rand(0...1)]
job.operator = operator if status != :open
@@ -112,7 +112,7 @@ end
job = Job.new(status:, privacy_policy: true, created_at: created_at)
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
student = students[rand(0...9)]
job.costumer = student
job.customer = student
job.creator = student
operator = operators[rand(0...1)]
job.operator = operator if status == :paid
@@ -137,7 +137,7 @@ end
job = Job.new(status:, privacy_policy: true)
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
student = students[rand(0...4)]
job.costumer = student
job.customer = student
job.creator = student
operator = operators[rand(0...1)]
job.operator = operator if status != :open
@@ -154,9 +154,9 @@ end
job = Job.new(privacy_policy: true)
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
student = students[rand(0...9)]
job.costumer = [ student, student, false ].sample
job.costumer_firstname = student.firstname
job.costumer_lastname = student.lastname
job.customer = [ student, student, false ].sample
job.customer_firstname = student.firstname
job.customer_lastname = student.lastname
job.creator = operators[rand(0...1)]
job.created_by_operator = true
job.inspect