Skip to content

Commit 0ba0466

Browse files
Default Team factory to create NR teams with a cutoff date
This is a more accurate depiction of what teams will look like in prod Jira-Issue: MAV-7080
1 parent ddf219a commit 0ba0466

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

spec/factories/teams.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
privacy_notice_url { nil }
6969
privacy_policy_url { nil }
7070

71+
national_reporting_cut_off_date { Date.new(2025, 11, 1) }
7172
programmes { [Programme.flu, Programme.hpv] }
7273
end
7374

spec/lib/mavis_cli/teams/set_national_reporting_cut_off_date_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313

1414
let(:cut_off_date) { Date.new(2026, 2, 1) }
1515

16-
let(:team) { create(:team, :national_reporting, workgroup: "NR-001") }
16+
let(:team) do
17+
create(
18+
:team,
19+
:national_reporting,
20+
workgroup: "NR-001",
21+
national_reporting_cut_off_date: nil
22+
)
23+
end
1724

1825
it "sets the cut-off date" do
1926
expect { command }.to change {

0 commit comments

Comments
 (0)