Skip to content

Commit

Permalink
Merge pull request #2119 from sudeeptarlekar/fix-failing-spec
Browse files Browse the repository at this point in the history
Fixed failing spec for phone number
  • Loading branch information
koic authored Sep 14, 2020
2 parents 35ea4f8 + 4e85b82 commit fd90b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def teardown
def test_locale_separate_from_i18n
I18n.locale = :en
Faker::Config.locale = :de
assert Faker::PhoneNumber.phone_number.match(/\(0\d+\) \d+|\+49-\d+-\d+/)
assert Faker::PhoneNumber.phone_number.match(/\(0\d+\) \d+|\d+-\d+/)
assert Faker::Address.street_name.match(//)
Faker::Config.locale = :ru
assert Faker::Internet.domain_name.match(/([\da-z\.-]+)\.([a-z\.]{2,6})/)
Expand Down

0 comments on commit fd90b99

Please sign in to comment.