|
|
@ -10,11 +10,11 @@ RSpec.describe CheckAnswersSummaryListCardComponent, type: :component do |
|
|
|
Timecop.freeze(Time.zone.local(2023, 1, 10)) |
|
|
|
Timecop.freeze(Time.zone.local(2023, 1, 10)) |
|
|
|
Singleton.__init__(FormHandler) |
|
|
|
Singleton.__init__(FormHandler) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
after do |
|
|
|
after do |
|
|
|
Timecop.return |
|
|
|
Timecop.return |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when given a set of questions" do |
|
|
|
context "when given a set of questions" do |
|
|
|
let(:user) { build(:user) } |
|
|
|
let(:user) { build(:user) } |
|
|
|
let(:log) { build(:lettings_log, :completed, age2: 99, startdate: Time.zone.local(2021, 5, 1)) } |
|
|
|
let(:log) { build(:lettings_log, :completed, age2: 99, startdate: Time.zone.local(2021, 5, 1)) } |
|
|
|