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

Add IMEI to PhoneNumber #212

Merged
merged 2 commits into from
Jun 18, 2015
Merged

Conversation

wemcdonald
Copy link
Contributor

Add valid IMEI (cell phone UUID) generator to PhoneNumber using proper reserved IMEIs

@rstacruz
Copy link
Contributor

Error: test_imei_with_sn(TestPhoneNumer): NameError: uninitialized constant TestPhoneNumer::Faker

/home/travis/build/EmmanuelOga/ffaker/test/test_phone_number.rb:20:in `test_imei_with_sn'
     17: 
     18:   def test_imei_with_sn
     19:     sn = rand(1_000_000)
  => 20:     assert_match /^\d{8}#{sprintf('%06d', sn)}\d{1}$/, Faker::PhoneNumber.imei(sn)

Thanks for the contribution! Might have missed an F in there.

@wemcdonald
Copy link
Contributor Author

Ah, sorry! This was a cherry-pick from an old branch when it was Faker; fixed.

rstacruz added a commit that referenced this pull request Jun 18, 2015
@rstacruz rstacruz merged commit 631bcbb into ffaker:master Jun 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants