Skip to content

Commit

Permalink
Remove faker NHS number monkeypatch
Browse files Browse the repository at this point in the history
A few months ago, we monkey patched our codebase (#1338) to work around the faker gem generating real NHS numbers.
This has now been fixed upstream in faker (faker-ruby/faker#2947) and released in https://github.com/faker-ruby/faker/releases/tag/v3.4.2.
  • Loading branch information
benilovj authored and tvararu committed Sep 18, 2024
1 parent 1c15a92 commit 3dc8811
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion spec/factories/patients.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

recorded_at { Time.zone.now }

nhs_number { Faker::NationalHealthService.test_number.gsub(/\s+/, "") }
nhs_number { Faker::NationalHealthService.british_number.gsub(/\s+/, "") }

first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
Expand Down
22 changes: 0 additions & 22 deletions spec/support/faker/national_health_service.rb

This file was deleted.

0 comments on commit 3dc8811

Please sign in to comment.