|
|
|
|
@ -6,7 +6,7 @@ RSpec.describe Csv::LettingsLogCsvService do
|
|
|
|
|
let(:real_2021_2022_form) { Form.new("config/forms/2021_2022.json") } |
|
|
|
|
|
|
|
|
|
before do |
|
|
|
|
LettingsLog.create!(startdate: "2021-10-10", created_at: Time.utc(2022, 2, 8, 16, 52, 15)) |
|
|
|
|
LettingsLog.create!(startdate: Time.zone.today, created_at: Time.utc(2022, 2, 8, 16, 52, 15)) |
|
|
|
|
allow(FormHandler.instance).to receive(:get_form).and_return(real_2021_2022_form) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|