Browse files

+ Ascension Island

  • Loading branch information...
1 parent 09895fd commit 9c16880366b6eb7ffa9beb9c43cd5c7089cb22d2 Florian René Hanke committed Aug 26, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/phony/countries.rb
  2. +3 −0 spec/lib/phony/countries_spec.rb
View
2 lib/phony/countries.rb
@@ -295,7 +295,7 @@
country '244', todo # Angola
country '245', todo # Guinea-Bissau
country '246', todo # Diego Garcia
- country '247', todo # Ascension
+ country '247', none >> split(4) # Ascension
country '248', todo # Seychelles
country '249', todo # Sudan
View
3 spec/lib/phony/countries_spec.rb
@@ -9,6 +9,9 @@ def self.it_splits number, expected
end
describe 'splitting' do
+ describe 'Ascension Island' do
+ it_splits '2473551', ['247', false, '3551']
+ end
describe 'Afghanistan' do
it_splits '93201234567', ['93', '20', '1234567'] # Kabul
end

0 comments on commit 9c16880

Please sign in to comment.