diff --git a/spec/factories/qualifications.rb b/spec/factories/qualifications.rb index 353b4e9dd5..c40679e2ca 100644 --- a/spec/factories/qualifications.rb +++ b/spec/factories/qualifications.rb @@ -30,9 +30,9 @@ title { Faker::Educator.degree } institution_name { Faker::University.name } sequence :institution_country_code, Country::CODES.cycle - start_date { Date.new(2020, 1, 1) } - complete_date { Date.new(2021, 1, 1) } - certificate_date { Date.new(2021, 1, 1) } + start_date { Faker::Date.between(from: 30.years.ago, to: 10.years.ago) } + complete_date { start_date + 5.years } + certificate_date { complete_date + 1.year } part_of_university_degree { true } after(:create) do |qualification, _evaluator|