|
|
|
@ -684,7 +684,7 @@ RSpec.describe SalesLog, type: :model do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when deriving household variables" do |
|
|
|
context "when deriving household variables" do |
|
|
|
let!(:sales_log) do |
|
|
|
let(:sales_log) do |
|
|
|
create( |
|
|
|
create( |
|
|
|
:sales_log, |
|
|
|
:sales_log, |
|
|
|
:completed, |
|
|
|
:completed, |
|
|
|
@ -712,6 +712,15 @@ RSpec.describe SalesLog, type: :model do |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
|
|
|
|
Timecop.travel(saledate) |
|
|
|
|
|
|
|
Singleton.__init__(FormHandler) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
after do |
|
|
|
|
|
|
|
Timecop.return |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when 2025", metadata: { year: 25 } do |
|
|
|
context "when 2025", metadata: { year: 25 } do |
|
|
|
let(:saledate) { collection_start_date_for_year(2025) } |
|
|
|
let(:saledate) { collection_start_date_for_year(2025) } |
|
|
|
let(:hholdcount) { 4 } |
|
|
|
let(:hholdcount) { 4 } |
|
|
|
|