Skip to content

Commit

Permalink
renamed nhs to national_health_service (#2923)
Browse files Browse the repository at this point in the history
* renamed nhs to national_health_service

* Reverted Gemfile.lock
  • Loading branch information
keshavbiswa committed Apr 2, 2024
1 parent dd8c88c commit 52e5d43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 52e5d43

Please sign in to comment.