Skip to content

Commit

Permalink
Fix phone_number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 17, 2018
1 parent 1c48463 commit dffd54e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/faker/phone_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def exchange_code
# Since extensions can be of variable length, this method taks a length parameter
def subscriber_number(length = 4)
rand.to_s[2..(1 + length)]
rescue I18n::MissingTranslationData
nil
end

alias extension subscriber_number
Expand Down

0 comments on commit dffd54e

Please sign in to comment.