Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed nhs to national_health_service #2923

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 3 additions & 3 deletions test/faker/default/test_faker_national_health_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ def test_nhs_british_number
assert_match(/\A\d{3}\s\d{3}\s\d{4}\z/, @tester.british_number)
end

def test_nhs_check_digit_equals_10
def test_check_digit_equals_10
Faker::NationalHealthService.stub(:rand, 458_617_434) do
assert_match('458 617 4331', @tester.british_number)
end
end

def test_nhs_check_digit
def test_check_digit
assert_equal 6, @tester.check_digit(number: 400_012_114)
end

def test_nhs_check_digit_11
def test_check_digit_11
assert_equal 0, @tester.check_digit(number: 418_513_625)
end
end
Loading