Skip to content

Commit

Permalink
Add reply_to_id to onboarding
Browse files Browse the repository at this point in the history
This updates the onboarding task and example template to allow providing
a `reply_to_id` for each team.
  • Loading branch information
thomasleese committed Dec 14, 2024
1 parent 277157f commit 72094b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ teams:
name: # Name of the team
email: # Contact email address
phone: # Contact phone number
reply_to_id: # Optional GOV.UK Notify Reply-To UUID

schools:
team1: [] # URNs managed by a particular team
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/files/onboarding/valid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ teams:
name: Team 1
email: [email protected]
phone: 07700 900816
reply_to_id: 24af66c3-d6bd-4b9f-8067-3844f49e08d0
team_2:
name: Team 2
email: [email protected]
Expand Down
2 changes: 2 additions & 0 deletions spec/models/onboarding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
team1 = organisation.teams.find_by!(name: "Team 1")
expect(team1.email).to eq("[email protected]")
expect(team1.phone).to eq("07700 900816")
expect(team1.reply_to_id).to eq("24af66c3-d6bd-4b9f-8067-3844f49e08d0")

team2 = organisation.teams.find_by!(name: "Team 2")
expect(team2.email).to eq("[email protected]")
expect(team2.phone).to eq("07700 900817")
expect(team2.reply_to_id).to be_nil

expect(team1.schools).to contain_exactly(school1, school2)
expect(team2.schools).to contain_exactly(school3, school4)
Expand Down

0 comments on commit 72094b1

Please sign in to comment.