Skip to content

Commit

Permalink
Ensure fake staff have change email permission
Browse files Browse the repository at this point in the history
This allows us to change the email address on applications in the test
environment.
  • Loading branch information
thomasleese committed Apr 9, 2024
1 parent ac1baba commit 8305475
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lib/fake_data/staff_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ class FakeData::StaffGenerator

def call
RECORDS.each do |record|
Staff.create!(confirmed_at: Time.zone.now, password: "password", **record)
Staff.create!(
confirmed_at: Time.zone.now,
password: "password",
change_email_permission: true,
**record,
)
end
end

Expand Down

0 comments on commit 8305475

Please sign in to comment.