Guest User

Untitled

a guest
May 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. [
  2. ["at", "(02236) 73 228", "+43223673228"],
  3. ["de", "0049 1234", "+491234"]
  4. ].each do |country, local, expected|
  5. specify "#{country}: #{local} => #{expected}" do
  6. PhoneNumber.new(local, :country => Country.find_by_tld(country)).globalize.should == expected
  7. end
  8. end
Add Comment
Please, Sign In to add comment